jquery not working to change inner html?

后端 未结 4 537
予麋鹿
予麋鹿 2020-12-03 18:03

hey people I\'m new at jquery and i have been trying to figure this out for like the past couple of hours... what the hell am I doing wrong here? All I want to do is change

4条回答
  •  忘掉有多难
    2020-12-03 18:38

    Do it like this:

    // 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!");
    

    http://api.jquery.com/html/

提交回复
热议问题