jquery - Expected ), but I couldn't understand the syntax issue here -
anybody plz find out issue here...
selectedpanelids=""; var panelids='@model.srpanellist'; var arrpanellist =panelids.split('|'); for(var = 0;i<(arrpanellist.length)-1;i++) { var id = arrpanellist[i].split('~'); if (id[1] != @model.objectid) { selectedpanelids = selectedpanelids + id[1] +',' ; } }
showing expected ), couldn't understand issue.
looks have syntax error.
you have @model.objectid
want wrap in quotes.
so if
statement like:
if (id[1] != '@model.objectid') { // ...
Comments
Post a Comment