jQuery search function not running in WordPress but running locally (fiddle)
I was loading jQuery after loading script like this: <script src=”https://wordpress.stackexchange.com/questions/213792/myscript.js” type=”text/javascript”></script> <script src=”https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js”></script> It needs to be jQuery on top.