Selector starting with [name^="value"]
selects elements that have the specified attribute with a value beginning exactly with a given string.
Is there a negative of this like so:
[name!^="value"]
which selects elements that have the specified attribute with a value NOT beginning with a given string.
attributeStartsWith selector Description: Selects elements that have the specified attribute with a value beginning exactly with a given string.
$() does not return the jQuery function, (which is $ itself,) but returns a wrapped set, with all those helpful methods on it.
jQuery [attribute|=value] Selector The [attribute|=value] selector selects each element with a specified attribute, with a value equal to a specified string (like "en") or starting with that string followed by a hyphen (like "en-us"). Tip: This selector is often used to handle language attributes.
jQuery attr(name, value) method is used to set the value of any standard attribute of the matched HTML element(s). We will use jQuery Selectors to match the desired element(s) and then we will apply attr(key, value) method to set the attribute value for the element.
$("div").not('[name^="value"]');
Perhaps you can use the :not()
selector: http://api.jquery.com/not-selector/
$('input').not('[name^="value"]')...;
Here's a jsfiddle using .not()
: http://jsfiddle.net/hNhgf/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With