I want to use jQuery to populate an array with values from input fields with a class of ‘seourl’…
<input id="title" class="seourl" name="title" type="text" value="???">
<input id="subtitle" class="seourl" name="title" type="text" value="???">
<input id="subtitle2" class="seourl" name="title" type="text" value="???">
<a id="getFriendlyUrl" href="">get url friendly</a>
How do i populate the array with input fields of class ‘seourl’?
$("#getFriendlyUrl").click(function() {
var arr_str = new Array();
?????? POPULATE ARRAY with input fields of class 'seourl', how ??????????????
});
You can use jQuery to get the
.valueif you want.Either way, you’ll end up with an Array of the values.