View Single Post
Old 12-06-2008, 05:13 PM   PM User | #3
spetsacdc
New Coder

 
Join Date: Mar 2008
Posts: 92
Thanks: 19
Thanked 0 Times in 0 Posts
spetsacdc is an unknown quantity at this point
Thanks, I forgot about that.

Now, is there anyway to select the name of a class that contains "lm"?

I can do it using jquery to select all the classes of something that has "lm#z" as one of them. However, I have to use string manipulation to get the class name that starts with lm and ends with z

Code:
var all_classes = $(e).parents(".div_row[class*='lm']").attr("class");
the_class = all_classes.substring(all_classes.indexOf("lm"),all_classes.indexOf("z")+1);
Thanks
spetsacdc is offline   Reply With Quote