Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <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>
- $("#getFriendlyUrl").click(function() {
- var arr_str = new Array();
- ?????? POPULATE ARRAY with input fields of class 'seourl', how ??????????????
- });
- $("#getFriendlyUrl").click(function() {
- var arr_str = $('.seourl').map(function() {
- return this.value;
- }).toArray();
- });
- return $(this).val();
- $("#getFriendlyUrl").click(function() {
- var arr_str = new Array();
- $('.seourl').each(function() {
- arr_str.push($(this).attr('value'));
- });
- alert(arr_str);
- });
- $('.seourl').each(function(ele){
- arr_str.push($(ele).val());
- });
- $("#getFriendlyUrl").click(function() {
- var arr_str = new Array();
- $('.seourl').each(function() {
- arr_str.push( $(this).val() );
- })'
- });
- <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>
- $("#getFriendlyUrl").click(function() {
- var arr_str = new Array();
- $(".seourl").each(function(index, el) {
- arr_str[index] = $(el).val();
- });
- alert(arr_str[0] + arr_str[1] + arr_str[2]);
- });
Add Comment
Please, Sign In to add comment