Fill in a form with jQuery

后端 未结 9 2057
眼角桃花
眼角桃花 2020-12-31 03:04

I am trying to use jQuery to fill in a form with some default values.

The form is contained in a div which has an id. In fact every element has an id, I did so just t

9条回答
  •  清酒与你
    2020-12-31 03:42

    Try this instead, using the val method:

    $("#coordX_0").val('some string or number');
    

提交回复
热议问题