$($("#myDiv"开发者_C百科)).append("<b>Hello</b>");
how can i apply to mydiv display:none
Don't manipulate the display CSS property with css(). Use hide():
$("#myDiv").hide().append("Hello");
Why are you doing:
$($("#myDiv"))...
?
$("#myDiv").css("display","none"); should do the trick but look into the jquery hide method too (hide) which can hide the div "smoothly" if you want that.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论