onclick calling hide-div function not working

前端 未结 3 1373
刺人心
刺人心 2020-12-04 03:05

I\'ve been fighting with this simple piece of code forever. I\'m trying to use a

3条回答
  •  旧时难觅i
    2020-12-04 03:50

    Let's do something in jQuery:

    
    
    Div's contents here

    Now, you need just use the code below to do what you want:

    
    

    Notice: you can have some properties for hide() function: Fast and slow. This will affect on the speed of hiding action.

    $("#myDiv").hide("slow");
    

    I hope this can help you.

提交回复
热议问题