[jQuery] radio buttons and php
I don't get this to work. Somehow the PHP code is ignored within the
radio input forms. Can I change PHP variables within the code and work
with them in the according #div? Does anybody have a hint? Thank you!
jQuery:
$("#input-l:input:radio,#input-c:input:radio").click(function(){
if ($(this).is(":checked")) {
$("#div").show();
}
else if($(this).not(":checked")) {
$("#div").hide();
}
});
radio buttons:
<input type="radio" id="input-c" name="user-type" value="1" <?php some
code ?>>
<input type="radio" id="input-l" name="user-type" value="2" <?php some
code ?>>