Now that I have an array of elements. I want to turn them into array of strings and parse out the information after onclick. So i guess I have two questions, first is how to turn them into strings second is how to use regex to parse them? I can write the regex myself but I want to know how to apply it to the string in javascript.
First I did this:
var array = $('a[onclick*="findCustomer"]');
Now, I have a list of this:
<a href="javascript:void(0);" onclick="findCustomer('James Smith',808-371- 4984,"Hawaii")">James Smith</a>
So my question is how to turn it into an array of string and how to parse out the Customer's name, phone number and state from that.