Javascript missing argument
create_anchor.setAttribute("onclick",
"getModelData("+model.model_id.toString()+",
"+model.model_name.toString +")");
it showing error while i'm passing another parameter to that function,the error is "missing ) after argument list"
[Break on this error] the ouput is like this getModelDa开发者_StackOverflowta(7,xxxx - xxxx series(H))
create_anchor.setAttribute("onclick","getModelData("+model.model_id.toString()+",'"+model.model_name.toString +"')");
Your mode.model_name.toString should be enclosed in quotes
精彩评论