May 2014 - thehazels May 2014 - thehazelsthehazels

Monthly Archives for May 2014

Identifying radio buttons

On document ready, to find the value of the check radio button, use the id together with  ‘checked’. E.g.: $(‘#myradiobutton:checked’).val();/> However, to trigger a click function on the radio button, id wasn’t recognised, but the input name was. E.g.: $(‘input[name=myradiobutton]’).click(function{}); … Continue reading

01. May 2014 by Antonia Whitaker
Categories: Code | Tags: | Leave a comment