Change content of div - jQuery

后端 未结 6 2127
天命终不由人
天命终不由人 2020-11-29 02:22

How is it possible to change the content of this div, when one of the LINKS is clicked?


      
6条回答
  •  长情又很酷
    2020-11-29 02:46

    Try this to Change content of div using jQuery.

    See more @ Change content of div using jQuery

    $(document).ready(function(){
        $("#Textarea").keyup(function(){
            // Getting the current value of textarea
            var currentText = $(this).val();
    
            // Setting the Div content
            $(".output").text(currentText);
        });
    });
    

提交回复
热议问题