Get the value in an input text box

前端 未结 12 737
你的背包
你的背包 2020-11-22 07:54

What are the ways to get and render an input value using jQuery?

Here is one:

12条回答
  •  长情又很酷
    2020-11-22 08:13

    You can simply set the value in text box.

    First, you get the value like

    var getValue = $('#txt_name').val();
    

    After getting a value set in input like

    $('#txt_name').val(getValue);
    

提交回复
热议问题