Change form input value with Jquery

后端 未结 2 1596
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-29 03:21

I am trying to change the input field value dynamically when the user pick the options from my dropdown menu. I have tried this code but have no luck. I was wondering if som

2条回答
  •  伪装坚强ぢ
    2020-12-29 03:58

    try :

    $('input[name="project"]').val("Good Fish");
    

    instead of:

    $('input[name="project"]').val()="Good Fish";
    

提交回复
热议问题