I am trying to work out how to show a div based on input to a field. I want to show the div if both of these conditions are true:
1) the field value is <=30 2) the field is not empty
at the moment i i have figured out the <=30 bit but then the form assumes that empty is 0 and shows the div, but i dont want the div to show if the field is left blank.
I tried this but it doesnt work:
$("#hidden")[$(this).val() <= "30" and !="" ? 'show' : 'hide']("fast");
Here's what i have so far: http://jsfiddle.net/q5kKz/318/
Thanks for any help!