how to use jquery.noConflict property

后端 未结 4 817
轻奢々
轻奢々 2020-12-09 00:39

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

4条回答
  •  半阙折子戏
    2020-12-09 01:08

    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.

提交回复
热议问题