I get a string like this from the my multi-select(link)
assetmasterfields=$('#assetmaster').multipleSelect("getSelects");
var arr = assetmasterfields.split(',');
console.log(arr)
This syntax gives me error:
'assetmasterfields.split is not a function'
I would like to turn this into a jQuery array. I have tried split couldn't get it right.
any ideas so that I can loop through the string as an array?
Thanks as always