Can I use comparison statements within a jQuery selector method?
eg.
I have a list of divs generated by php that all use the same CSS class but have value attributes of 1, 2, 3 etc. I also have a text input field with an id. This field can accept numbers only. I would like to select the div (from the long list) that has a value attribute that matches the value put into the text input box.
Can I write something like this:
$( '$(".someClass").val() == $("input#someId").val()' )
???