currently im using jquery to get the URL path
var href = document.location.pathname;
the path im looking for is something like /clients/invoice/details/DynamicID/DynamicID
i need to check if jquery if the href contains /clients/invoice/details/ in that order in the path to do something. Can someone please help me - i tried the following
if(href.match('/\/clients/invoice/details/\/')) {
}
but i think im doing something wrong.