Generally, we used radio buttons to let a user select ONE option from a limited number of choices. Most of the cases radio buttons are ideal to select a single option from a group of the options. If you want to allow the user to check only one checkbox from a group of the checkboxes, it can be done easily using jQuery.

By: CodexWorld Sep 11, 2017

Google Maps JavaScript API provides various option to customize the Google Map functionality as per your needs. The marker position change on Google Map is one of them. Using JavaScript you can easily change the position of the marker on Google map without page refresh. Use setPosition() to change the position of the marker on Google Map.

By: CodexWorld Aug 21, 2017

It is important to take security seriously when you collecting data from the users. Form data validation is required before submitting to the database. You can implement the client-side form validation easily with HTML5 without using jQuery. Use type and pattern attribute in HTML input field to validate a phone number.

By: CodexWorld Aug 18, 2017

Before submitting the value of the radio button group, it is required to check whether the user selects one radio button in each group. Because it’s always a good idea to validate the value in the client before sending data to the server side. Here we will show you how to check if one radio button in each group is checked using jQuery.

By: CodexWorld Aug 3, 2017

Using jQuery you can automatically convert text field value while typing. Not only the jQuery, here we will show you the three different way to transform text field data to uppercase while typing. You can convert text to uppercase using jQuery or JavaScript or CSS.

By: CodexWorld Jul 26, 2017

Use of undefined constant VIEWPATH issue occurs when you upgrade your existing CodeIgniter application version to CodeIgniter 3.x. The undefined constant viewpath issue can be easily solved by the following solution. Open the root’s index.php file and specify the view directory to solve this issue.

By: CodexWorld Jul 19, 2017

Generally, when we get the file size in JavaScript, it returns in bytes format. But if want, you can easily convert file size to human readable format using JavaScript. Use our custom formatFileSize() function to convert the size from bytes to KB, MB, GB, TB, PB, EB, ZB, YB using Javascript.

By: CodexWorld Jul 14, 2017
PHP

Code optimization can reduce the execution time of the script. Using the looping statements, you can get an array of a specific key from the multidimensional array. But the same work can be done in a single line of code by array_column() function in PHP.

By: CodexWorld Jul 5, 2017

Before sending the file to the server for upload, it always a good idea to validate the file. Using JavaScript you can easily get the file info and validate in client-side. The following single line of javaScript code, help you to get the file name, size, type, and modified date.

By: CodexWorld Jun 30, 2017
keyboard_double_arrow_up