Get Value of Selected Radio Button in jQuery

While working with forms, sometimes we need to get some specific input like gender or name prefix then the radio button is an idle choice for that input. Generally, radio buttons are used for user selection from per-defined values. For example, On the registration page, gender is commonly used to determine the gender of the

Learn More

How to Convert Strings to Uppercase or Lowercase In JavaScript

JavaScript has in-built functions for strings like slice(), substring(), and replace() methods. Here, we will use in-built methods like toUpperCase() and toLowerCase(). In this tutorial, we will convert a string into uppercase and lowercase with JavaScript. Convert String Into Uppercase In JavaScript String conversion to uppercase is frequently used in web development. Here, we store

Learn More

Reload a Webpage using JavaScript

You have seen some websites that automatically refresh or reload the webpage after some specific time like 60 seconds. Also, you have noticed some website updates frequently. Auto refresh functionality is generally used to provide fresh content to a user without the user needing to perform any type of action. Webpages like live scores, result

Learn More

Get File Extension in JavaScript

While working with files, sometimes we need to validate file extensions or get file extensions for independent use like displaying files based on extensions. With HTML input, we can ask a user to upload a file to a webpage. Validating user input is necessary during file upload. It can be risky to enable users to

Learn More

Show Video Preview using JavaScript

Sometimes we face a requirement to show a video preview to a user before uploading it to the server. Social media sites like Facebook and Twitter provide this type of functionality so users can see which video file is selected. We can create similar functionality for showing video previews easily using JavaScript. In this article,

Learn More

Show Image Preview using jQuery

Sometimes we face a requirement to show an image preview to users before uploading to a server so they can verify which image or images are selected by them and if wrong images are selected then they can remove them before uploading to a server. Social media sites and hosting platforms provide this type of

Learn More

Generate Random String in PHP

In this example, we will generate a random string using PHP. We will use multiple methods to create random strings in PHP. There are three different functions for generating random numbers in PHP which accept min and max values and generate a random number from that range. PHP doesn’t have any in-built functions to generate

Learn More