I have an HTML input with a link in the value.
<input type = 'text' value = 'http://www.link.com' id = 'link' />
I am using jQuery to change the value on a certain event.
$('#link').val('new value');
上面的代码更改了文本框的值,但不更改代码中的值(值=‘http://www.link.com’保持不变).我还需要更改值=‘’.