If selected option value contains....


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $('.convictionCode').change(function(e) {
  2. var thisVal = $(this).val();
  3. if (thisVal == 'Something') {
  4. // True
  5. } else {
  6. // False
  7. }
  8. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.