zono

Untitled

Feb 5th, 2012
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var searchInput = $("#search .input_text[type='text']");
  2. while(searchInput.get(0).tagName != "FORM") {
  3.         searchInput = searchInput.parent();
  4. }
  5. searchInput.attr("class", "someclass");
Advertisement
Add Comment
Please, Sign In to add comment