Reputation: 343
Referring to this question
How do you enable a disabled radio button using jquery in ie7
I have been writing a different Css file for each browser separately. I have just one common jquery file now in my project and it works in Firefox well, should I code one for my chrome and IE too ?
Upvotes: 2
Views: 501
Reputation: 379
I guess you will have to use a small amount of browser specific code as jQuery works similar with all browsers but not the same always.
Upvotes: 1
Reputation: 3834
No, you shouldn't. jQuery supports all major versions of all major browsers.
Even if some behavior isn't available in older browsers(e.g. localStorage), you should use Modernizr to smooth out any problems.
Which, if you're only using jQuery, you shouldn't have in the first place.
Upvotes: 1
Reputation: 101
Like mentioned above. JQuery for the most part works across all browsers. As a side note you shouldn't have to write different css files for each browser. Maybe some small helper files to make adjustments but not full files for each browser.
Upvotes: 1
Reputation: 29976
NO.
jQuery is designed to be cross browser compatible. See : http://docs.jquery.com/Browser_compatibility
jQuery actively supports these browsers:
* Firefox 2.0+ * Internet Explorer 6+ * Safari 3+ * Opera 10.6+ * Chrome 8+
Upvotes: 1
Reputation: 2747
jQuery is compatible with all the major browsers so whatever code works in ff should work in chrome and IE. Because of this you shouldn't have to write separate code for each browser.
http://docs.jquery.com/Browser_compatibility
Upvotes: 5