Regular Expression (RegEx) is the easiest way to trim a specific character from a string in JavaScript. Use the JavaScript replace() method with RegEx to remove a specific character from the string. The example code snippet helps to remove comma (,) characters from the start and end of the string using JavaScript.

By: CodexWorld Apr 14, 2021

The Validator class helps to validate input fields in Laravel. There are various validation rules available to validate fields. The required_without validation rule is used to check whether one of the other fields must be present and not empty. Use the required_without rule in Laravel Validation, to validate one of two fields must be filled.

By: CodexWorld Apr 14, 2021

The browser’s back button allows the user to redirect back to the previous page that accessing before the current page. If you want to restrict users to back the previous page on your web application, the browser back button needs to be disabled. The browser’s back navigation can be disabled with JavaScript.

By: CodexWorld Mar 19, 2021
PHP

HTML meta tags are used to provide structured metadata about an HTML document. Mostly, 3 meta elements are used to specify the metadata for the web page, title, description, and keywords. The information from the meta tags can be fetched using PHP.

By: CodexWorld Feb 22, 2021

MySQL RAND() function provides an easy way to select random rows from the table. You can get random records from the database using a single SQL query in MySQL. If you want to list the unique data on each page load, the random records feature is very useful. Use MySQL RAND() function to select random records from the table.

By: CodexWorld Jun 29, 2020

JavaScript toLocaleString() method provides an easy way to convert date to a specific format. You can change the date format as per your needs using JavaScript. Use toLocaleString() method to convert date to a specific format in JavaScript.

By: CodexWorld Mar 26, 2020

Strip tags from the string, is very useful when you want to extract text from string that contains HTML tags. You can remove the HTML tags from string using Regex in JavaScript. Use JavaScript replace() method with Regex to remove HTML tags from string.

By: CodexWorld Mar 26, 2020

To add the column sorting functionality, the HTML table style needs to be changed. If you are using the Bootstrap table structure, sort indicator icons can be easily added to the columns. Use CSS to add up/down arrow icons to the table column with Bootstrap.

By: CodexWorld Jan 24, 2020

Progress Bar helps to display the file upload status in real-time. The progress bar is very useful to make the file upload process user-friendly. Use xhr option in the $.ajax() method to get the file upload progress and make a progress bar with percentage using JavaScript.

By: CodexWorld Dec 18, 2019
keyboard_double_arrow_up