嘿,我是
jquery的新手,我一直试图像过去几个小时那样解决这个问题……我到底做错了什么?我想做的就是改变div的innerHTML.
$("left_menu_bar").innerHTML = "You clicked me!";
解决方法
像这样做:
// referencing by id $("#left_menu_bar").html("You clicked me!"); // referencing by class name ( will apply to all div's with this class ) $(".left_menu_bar").html("You clicked me!");