[jQuery] Re: find out if an element is a drop down list

2009-07-01 Thread cms4j
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

[jQuery] Re: find out if an element is a drop down list

2009-06-30 Thread Charlie
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

[jQuery] Re: find out if an element is a drop down list

2009-06-30 Thread 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 span elements, but also any element in a web page. Therefore i loop through all elements

[jQuery] Re: find out if an element is a drop down list

2009-06-30 Thread Charlie
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