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
Post a Comment