I am just wondering whether that is a correct syntax in JQuery :
var elements = $("#contact-area input[type=text,value=something] ").get();
What I mean is how 开发者_StackOverflowto write specify more than one parameter to and filter apart from this use :
$("#contact-area (input[type=text],input[value=something])").get();
put each attribute in it's own []
(no spaces in between attributes).
var elements = $("#contact-area input[type=text][value=something] ").get();
or
var elements = $("#contact-area input:text[value=something] ").get();
精彩评论