Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10313

Re: jquery not identifying the WEC element ids

$
0
0

HI Suhaas,

 

this won't work as ":" is a used as selector e.g. <element>:hidden. This is the case for all selector characters (., >, +, ~, #, :, etc)

 

You must escape the colon using "\3A" instead of ":".

 


#paR:rRMV:fRM:txtskypeid4 becomes
#paR\3ArRMV\3AfRM:\3Atxtskypeid4

 

But try to avoid using the ID field, it would become a nightmare in case of you change something in the HTML document structure as the ID would change. The easiest way to handle it is  to assign a class name and apply the logic based on classnames (especaially if you can change the ID, then you definetely can also just apply a class as well). You can also use the logic Daniel recommendet, but make sure that the used component & ID is not rendered several times in your document. But keep in mind, ends-with is a CSS3 feature and it might not work in  older browsers versions like IE8.

 


 



Viewing all articles
Browse latest Browse all 10313


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>