How to show/hide a jquery script only on Firefox

Trying to show and hide js only on Firefox browser. There are another question about Detect all Firefox versions, but it is not answer of my question so i have asked this question.


<div id="about_me">
This Text color will be change

Show this only on Firefox:


I have trying this but not working:

<!--[if Gecko ]>

And Show this to other browsers and hide on Firefox:


How show JS to different browser, that text color will be red only on Firefox and blue on other browsers.

Please See this Fiddle >>

Source: cross-browser

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.