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

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -