Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Custom jQuery selector for Input values
* Custom jQuery selector
* :val("inputvalue")
* usage: $('input:val("foo")')
jQuery.extend(jQuery.expr[':'], {
val: function (el, i, meta) {
return meta[3] == jQuery(el).val();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment