Click here to Skip to main content
15,914,222 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
See more:
Hi. I have this line

filter("#" + rowid + "." + realclass).show();


But it isn't working. I don't tell anything else about project, because it isn't metter. If I use these lines, then everything works fine

filter("." + realclass).show();

or
filter("#" + rowid).show();


So, the problem is in the syntax! :(
Posted
Updated 17-Feb-14 2:16am
v2

1 solution

Please try is as below.

This will produce a subset of the elements matched by the inital selector that have the id rowid OR class realclass:

$(selector).filter("'#' + rowid, '.' + realclass");


This will produce a subset of the elements matched by the inital selector that have BOTH the id rowid AND class realclass:

SQL
$(selector).filter("'#' + rowid. + realclass");


LIVE DEMO : JsFiddle
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900