Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <input type="text" name="SomeThing-Really-Complex-and-Annoying" />
- $('input[name="something-really-complex-and-annoying"]').addClass('yay');
- $(':input[name]').filter(function() {
- return this.name.toLowerCase() == 'something-really.etc';
- });
- $('input[type="text"][name]').filter(function() {
- return this.name.toLowerCase() == 'something-really-complex-and-annoying';
- }).addClass("yay");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement