c# - jQuery selector issue with Internet Explorer -
the following works browser except flavour of internet explorer, thoughts? fails execute! has come across kind of problem before?
if ($('select[id$="<%= this.applicantid %>_employmentstatuslist"]').val() != 'n') { $('[id^=maincontent_incomedetails_1]').each(function (index) { var fieldvalue = $('input[id$=' + this.id + ']').val(); if (fieldvalue != "") { totalincome += parseint(fieldvalue); } }); if (totalincome == 0) { $('#incomeerror').dialog('open'); validemployment = false; } }
try move out <%= this.applicantid %> nugget, maybe ie don't it:
var appid = "<%= this.applicantid %>"; if ($("select[id$=" + appid + "_employmentstatuslist"]').val() != 'n') { $('[id^=maincontent_incomedetails_1]').each(function (index) { var fieldvalue = $('input[id$=' + this.id + ']').val(); if (fieldvalue != "") { totalincome += parseint(fieldvalue); } }); if (totalincome == 0) { $('#incomeerror').dialog('open'); validemployment = false; } }
Comments
Post a Comment