in java script i'm create array , i'm converting json object
using stringify
method.
<script type="text/javascript"> var array1 = new array(); $.ajax({ url : "result", type : 'post', data : { "array1" : json.stringify(array1), "globalclassid" : globalclassid }}); </script>
but in server side array1
parameter creating ["1","2","3"]
don't want bracket []
how remove bracket?
if remove []
code "1","2","3"
, can simple loop it.
following code working me..
<script type="text/javascript"> var array1 = new array(); $.ajax({ url : "result", type : 'post', data : { "array1" : array1.join(), "globalclassid" : globalclassid }}); </script>
Comments
Post a Comment