I have some strings separated with comma. Those value I need to get in an array. Which I am able to do. For getting this I had done this.
var productArray = $("#service").data('product').split(',');
And those data are showing properly in productArray variable. Those data format are like this.
["[44]Medicine 2", "[63]Test Sam "]
Now I need to get those number which is inside this character []. For instance I need to get 44 and 63 as per above data given.
I had done nothing for this part as I am not getting any way.