jQuery - Append a Value to a INPUT, keeping it a Comma Delimited list

后端 未结 4 861
Happy的楠姐
Happy的楠姐 2020-12-16 14:42

I have an input like follows:


I\'d like to be able to append a value to th

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-16 14:55

    I believe the .append() function is exactly for this purpose. I just tried:

    $("#attachment-uuids").append(new_val); 
    

    to append values to a field. This works and "attachment-uuids" is populated with CSVs, as required.

提交回复
热议问题