jQuery命令,如hasClass()。 ATTR()。 在play Framework中迁移后,click()无法正常工作

I have migrated a project from PHP to play framework. In the PHP version all works fine, but some Javascript parts doesn't work in play framework. All files are correctly included controller and views have been migrated correctly.

For example:

        if ($('#cloudsOverlay').attr("checked"))
        $("#bft_scale").fadeIn("slow");

is working fine in PHP Project. I used this to check if a checkbox is selected or not. This code doesn't work in my play application, like some other like statements hasClass()(to check a css class is active) or click(). The project is implemented with google maps.

Anyone has an idea?