internet explorer - Works on IE but Chrome & Firefox not -


my javascript:

var bossid = $('#bossid'); var date = $('#divdate'); var headdate = $('#headshipdate'); var select = '-- select --';  bossid.change(function () {     if ( bossid.find(':selected').text() != select )         date.show();     else {         date.hide();         headdate.val('');     } }); 

my view:

@html.dropdownlist(     "bossid", null, "-- select --",     htmlattributes: new { @class = "form-control" } )  <div id="divdate" class="form-group" style="display:none">     @html.editorfor(         model => model.headshipdate,         new { htmlattributes = new { @class = "form-control" } }     ) 

per title, script works fine on internet explorer, not in chrome & firefox. how can solve this?


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -