IE7 – JQuery selector issue

Posted: November 5, 2010 in JQuery
Tags:

Selecting element using element’s id + one of its class ex: $(#elementid.elementclass) will not work in IE7. It works in all other browsers IE8, FF, Safari, Chrome … etc.

Actually you can use id alone to access an element but this tip is useful in case if you got a situation to target an element by using both id + one of its class.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s