javascript - Is jquery ":contains" selector accepts this kind of value "Banking and Finance"? -


I have problem in jquery in it seems that it accepts only one word. No phrases or two words.

Example:

  $ ('# div: happens (' word ')'); - & gt; It's OK $ ('# div: happens' (' just another word ')'); - & gt; It will return empty / this match will not be  

Do you have any experience with this kind of problem?

Your answer is very much appreciated. For example: "post-text" itemprop = "text">

What you need to do is to use double quotation marks (instead of those single ones).

Wrapping quotation to the whole selector), for example:

  $ ("P: happens ('John Riesg')");  

This will select the right paragraph,

inside the string with 'John Raisig' or you can reverse it:

 < Code> $ ('P: happens ("John Riches");  

Or you can use an outdated escape:

  $ ('P: contains (\' John resig \ ')');  

Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -