javascript - jquery .change() in firefox -


i'm using jquery change change values of select drop down whenever user changes month (so right number of days displayed). works great in browsers except firefox :(

suffice code big this

$(document).ready(function() {  var leap;  $('.dob').change(function() {  var y = $('#ryear option:selected').html(); /* year selected */ var s = $('#rmonth option:selected').html(); /* month selected */  });   }); 

then alter data variable values in mind. there 3 selects .dob, bit this

<select class="dob" id="rday">      <option id="01">01</option>      .... </select> <select class="dob" id="rmonth">      <option id="1876">jan</option>      .... </select> <select class="dob" id="ryear">      <option id="1876">1876</option>      .... </select> 

in firefox when select month or year select drop down (the value of day isnt selected script isnt affected), well, drop down flashes , appears, , instantly disappears on single click in firefox.

any ideas why script doing this?

ids can not start numbers.

ids have unique identifiers.


Comments

Popular posts from this blog

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -