Split array value and assign to each variable
Hi,
I have an Array, in which I am adding the items in the below format:
I want to split the data based on "#" and assign to a asp.net gridview using jQuery. I have tried the below, but not sure, how to pass the data to gridview.
Below is the code used:
- var newdata = new Array();
// newdata.push(items) // contains format "Test#12/10/2013#http://url"
var newArray = newsdata.split('#');
- for (var i = 0; i < newArray.length; i++) {
$("#GridView").append(); // not sure how to append all the three items
}
Thanks