I have an image tag as

<img id="myimg" src="images/expand.jpg" />

I am trying as

if($("#myimg").attr("src").contains("expand"))
    // do something
else
    //do something else

but it gives an error "Object doesn't support this property of
method". Please help.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to