I am testing my webpage on a server using preview dns. Just realized that preview dns automatically adds mootools library towards the end of any php page. Probably for thei
Instead of j(function()...
try
j(document).ready ( function() { alert("here"); j("select#rooms") .change ( function() { alert("here1"); } ) } );
You were trying to wrap a function instead of an element, which is what might be causing the unexpected behavior.