I try to implement the following code:
<input type="radio" name="yesno2" value="yes" style="outline:0;"/>Yes
<input type="radio" name="yesno2" value="no" style="margin-left:30px; outline:0;"/>No</div>
in my javascript:
<script>
if ($("input[name='yesno2']").val() == "no") {
alert("ddd");
}
</script>
if I check no, it should show me the alert window, but it didn’t show. sorry if I just show you part of the code, anyone could show me what am I doing wrong, thanks in advance!
Working sample
http://jsfiddle.net/WxmpJ/