Hello Everyone Today in this blog we are going to know about the Storing and Clearing Objects in localStorage-javascript. So, first of all, Web storage objects localStorage allow saving key/value pairs in the browser. The main…
Category: Javascript
Strong Random Password Generator Using Javascript
Today, in this blog we are going to learn how to create a strong random password generator using javascript. As we know with using personal facts, such as your name, date of birth, home address…
Difference Between search() and indexOf() in Javascript
In this blog, we know the difference between search() and indexOf() in javascript. We also know which one is faster and reliable to use. First, we discuss Search() Method Description The search() method is used to…
How to get selected radio button value in Javascript
You can use the jQuery :checked selector in combination with the val() method to find the value of certain radio button inside a group.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<script type="text/javascript"> $(document).ready(function(){ $("input[type='button']").click(function(){ var radioValue = $("input[name='gender']:checked").val(); if(radioValue){ alert("Your are a - " + radioValue); } }); }); </script> |