jquery - FireFox issue when second selector for $x.on('change', y -


can 1 tell me why works in chrome not in firefox

<!doctype html> <head>     <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>     </head> <body>     <form class="frm">     <select id="xid">         <option value="1">one</option>         <option value="2">two</option>     </select>     </form>     <script>     $('.frm').on('change', '#xid', function(event){       alert('test);     });      /* // 1 works in firefox     $('#xid').on('change',function(event){       alert('test);     });     */     </script> </body> 

if use $('#xid').on('change',function(event) ... works fine.

jsfiddle link: http://jsfiddle.net/cslak/1827/

i need use $selector.on('change', 'secondselector'

.... similar questions have been asked using on change select drop down, that's not question. question is, why doesn't work in ff when using $selector.on('change', 'secondselector'

edit: firefox browser version 7.1 (thanks jason p pointing out version related)


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -