lundi 27 octobre 2014

Using jquery to check if radio was changed


Vote count:

0




I was trying to trigger an event using jquery radio button change but it wont even do an alert, I have the following on jsfiddle. Am I missing something? http://ift.tt/1wv25U4



$('input[type="radio"]').change(function(){
if($(this).is(":checked"))
$("p").css("color":"red");
else
$("p").css("color":"black");
});


asked 9 mins ago







Using jquery to check if radio was changed

Aucun commentaire:

Enregistrer un commentaire