JavaScript
Article

jQuery selector not equal to wildcard

By Sam Deering

Simple jQuery code snippet which adds an image after every input field (except those input fields which have a type=submit) using .not(wildcard) in the jQuery selector.

$(':input:not([type="submit"])').each( function(i,v)
{
    $(this).after('');
});

No Reader comments

Recommended
Sponsors
Because We Like You
Free Ebooks!

Grab SitePoint's top 10 web dev and design ebooks, completely free!

Get the latest in JavaScript, once a week, for free.