I have a set of hidden inputs on my html page.
I'm looking to run a piece of jQuery to check if any of them have a particular value constant ("New"), and if they do, then do the following:
$('#dataContainer').scrollTo("id of the input with the special value");
Is it possible to loop through the inputs based on value using jQuery selectors? In this case, once it finds the first input with the value "New", it can call that scrollTo() method and then quit, it doesn't need to look at the rest of them.
How would you do this with jQuery?