Find elements with given class and multiple attribute Jquery
How do we do a each() with multiple attributes?
Working:
$(".divReplies[userId="+userIdTemp+"] ").each(function(index, element) {
});
Not wo开发者_开发问答rking:
$(".divReplies[userId="+userIdTemp+" replyId="+replyId+"]").each(function(index, element) {
});
Thanks
You have use separate brackets for each attribute:
$(".divReplies[userId="+userIdTemp+"][replyId="+replyId+"]").each
精彩评论