jquery doesnt work on localhost

jquery doesnt work on localhost

I have multiple dependant select boxes.
if I choose in parent select child box automatically collects data from database & and show selected results to child select box.
 everything works fine on hosting.
but doesnt work on localhost.

is there any additional settings to apache to use jquery?

I am using this example
http://github.com/ehynds/jquery-related-selects

when I choose value from first select - the child select shows always please wait.
Please help.
thank you.