I am having 4 radiobuttons in my web page like below:
<label for="theme-grey"><input type="radio" id="theme-grey" name="theme" value="grey" />Grey</label>
<label for="theme-grey"><input type="radio" id="theme-grey" name="theme" value="pink" />Pink</label>
<label for="theme-grey"><input type="radio" id="theme-grey" name="theme" value="green" />Green</label>
Now in jQuery I want to get the value of selected radiobutton on click of any radiobutton out of above three. In jQuery we have id (#) and class (.) selectors but what if I want to put event on radiobutotn using thier names? as below?
$("<radiobutton name attribute>").click(function(){});
Please tell me how to solve this problem.
Thanks