Posted By

masonjo on 03/30/10


Tagged

name


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

nightshiftc


Show field based on radio buttons


 / Published in: jQuery
 

  1. $("input[name='ep']").change(function(){
  2. if ($("input[name='ep']:checked").val() == 'no')
  3. $('#yourpt').hide();
  4. else if ($("input[name='ep']:checked").val() == 'yes')
  5. $('#yourpt').show();
  6. });

Report this snippet  

You need to login to post a comment.