jQuery change input text value

后端 未结 5 1872
刺人心
刺人心 2020-11-28 02:12

I can\'t find the right selector for:


         


        
5条回答
  •  粉色の甜心
    2020-11-28 02:55

    jQuery way to change value on text input field is:

    $('#colorpickerField1').attr('value', '#000000')
    

    this will change attribute value for the DOM element with ID #colorpickerField1 from #EEEEEE to #000000

提交回复
热议问题