Access the only span inside an element using JQuery -
this might sound question asked before isn't. know how access elements using jquery in situation, parent element has colon in name making difficult. structure follows:
<fb:comments class='fb_iframe_widget'> <span>something</span> </fb:comments>
note span need access doesn't have id or class , when use regular jquery construct throws error due colon:
var fbspan = $('fb:comments span');
if colons not allowed in tag names, how facebook in first place? more importantly, how access span inside <fb:comments>
?
you can using class if solves problem, like
$(".fb_iframe_widget").find("span");
or
$(".fb_iframe_widget span");
Comments
Post a Comment