Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: Hide / Show fields in a user form Conditionally based on Cascade Pulldown

$
0
0
Hmmm...I don't think you need the "live' method. The 'change' method should work on its own. Also, declaring the var 'title' isn't necessary. That part isn't an issue for anything except saving you some writing in the future. So, it should work as....
$('select[id$="Report_Type"]').change(function() {
  if($(this).val()=='Rebuttal') {   
    $("[id$='Evaluations']").show();
  }
  else {
    $("[id$='Evaluations']").hide();
  }
}); 
Geoff

Viewing all articles
Browse latest Browse all 6517

Trending Articles