jquery - Expected ), but I couldn't understand the syntax issue here -


enter image description 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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -