I have a button as follows:
<button class="btn btn-danger delete" data-type="GET" data-url="/js/jQuery-File-Upload-master/server/cf/Upload.cfc?method=init&file=quote_3-39Sussex.pdf">
<i class="glyphicon glyphicon-trash"></i>
<span>Delete</span>
</button>
I need some jquery to isolate and return only the filename from the data-url attribute, i.e. "quote_3-39Sussex.pdf"
How would this be done?
Assuming a button click listener, I guess the beginnings would be something like:
var str = $(this).attr('data-url');
var file = str.join?(something)?. I don't know how to proceed