If I do this:
$("[value='xxx']")
It selects textboxes that were sent from the webserver with a value=xxx.
It won’t select the textboxes that were set xxx by the user at the client side.
On a dropdown selection, if the text matches, I want to hide those textboxes. How do I do this?
Use the
.filter()function.Read more: http://api.jquery.com/filter
JSfiddle: http://jsfiddle.net/pmuuM/ (try clicking the button before and after changing the value to XXX)
Or (since the question updated):