JavaScript
Article
By Sam Deering

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.

--ADVERTISEMENT--

$(':input:not([type="submit"])').each( function(i,v)
{
    $(this).after('');
});
Recommended
Sponsors
Get the latest in JavaScript, once a week, for free.