I have the following URL which I'm fetching:
http://domain.com/search/?wpv_paged_preload_reach=1&wpv_view_count=1&wpv_post_id=205499&wpv_post_search=saint%20laurent&wpv_filter_submit&wpv-women-clothing%5B0%5D=all-clothing
The following code manages to get the whole URL
var url = $(location).attr('href');
My question is, how can I get the last Character of the above URL, so that I can test a condition like this:
if (last character in code containers an integer) {
do something
}
Thanks