Problem working with jQuery

后端 未结 2 680
终归单人心
终归单人心 2021-01-24 02:42

jQuery for some reason isn\'t working.I\'d like to know what the problem is.Here is my code :



        
相关标签:
2条回答
  • 2021-01-24 03:08

    You seem to be confusing the form of the script tag that goes:

    <script type="text/javascript">
    

    with the one that goes:

    <script language="javascript">
    

    (see e.g. here for some explanation). Why not fix your tags to use just type= instead? Not sure whether that's all your problem (after spotting this one I think it needs to be fixed even if there were others;-) but it's confusing me and could be confusing your browser;-).

    0 讨论(0)
  • 2021-01-24 03:21

    I doubt it's the problem, but trying changing your function name from hide(), which is a jQuery function, to something else like hideDiv()

    Since hide() isn't being used with the jQuery tag ($.hide()) I doubt this is the issue, but worth a shot I guess.

    0 讨论(0)
提交回复
热议问题