I was getting handling data in JS with spliting
var items=itmVal.split('$$');
var len=items[0]+1;
was returning 121 instead of (12+1)=13
data of items[0] is 12...
so string is main type for JS
for int conversion must use parseInt function
i solved the problem by
var len=parseInt(items[0])+1;
No comments:
Post a Comment