How can I evaluate, on keyup, whether or not two elements have a certain type of data, as attached by the $.data() method of jQuery?
<input type="text" class="some_div"></input>
<input type="text" class="some_div"></input>
$('.some_div').keyup(function(){
//do BOTH elements have some data?
//do something
// else
//do something else
});
1 Answer