I want to do he following, but it does not work:
if(pathname == \'/ik/services/\' || \'/ik/recruitment/\'){ //run function }
It is compl
Try
if(pathname == '/ik/services/' || pathname == '/ik/recruitment/'){
OR
jQuery inArray
Example
var arr = ['/ik/services/','/ik/recruitment/']; if($.inArray(pathname , arr) !== -1)