I have list of items with the same class name - "fileLink"
When i submit the form below I would like to send, via AJAX, the list of file URL to the AJAX file (and the email address that user type).
How do i send array by class name to ajax file?
<ul class="feeds" id="filesList">
<li>
<a href="http://file_folder/3604.jpg" target="_blank" class="fileLink">356458.e109abcc152f2536b969b32f6e8439e5</a>
<span class="text-muted">DOC</span>
</li>
<li>
<a href="http://file_folder/3605.jpg" target="_blank" class="fileLink">357161.e4948db1d64c88b9396647aaa89a7f10</a>
<span class="text-muted">jpg</span>
</li>
<li>
<a href="http://file_folder/3606.jpg" target="_blank" class="fileLink">357213.e109abcc152f2536b969b32f6e8439e5</a>
<span class="text-muted">jpg</span>
</li>
<form class="form-inline m-t-20" action="#" id="#emailFile-form">
<a href="#" type="submit" class="btn btn-default" id="emailFile_btn">SEND</a>
</form>
</ul>