I just found something that helps me a lot, it's not just a jQuery
property, but a direct property of HTML-elements:
.tagName
So my above workarounds would work as follows.
if (self.tagName == 'IMG') { // --- image ---
// do something
}
if (self.tagName == 'SELECT') { // --- drop down
I guess you do have a lot of filtering to do! I'm probably not one that
can be of much help. Your plugin is obviously going to be performance
critical with as much filtering you'll need to do. I'm still learning
about performance factors of various functions ,methods, memory usage
etc
cms4j
Hello Charlie,
thank you for responding that fast.
I am trying to push my plugin l10n (http://cms4j.wordpress.com/l10n-a-
jquery-plugin/) a bit further so that is does not only localize texts
within the elements, but also any element in a web page.
Therefore i loop through all elements that hav
when you are looping through all these tags what are you trying to do?
exclude certain tags or find them to manipulate?
if trying to exclude you can do things like
$(".specificClass *").not("img").hide() //hides all tags inside
.specificClass except img's
$(".specificClass *").find("img").
4 matches
Mail list logo