当用户输入 property_name
时,我想将 property_name
的值发送到 headline
和 property_name_thumb
。当我只使用其中之一而不是同时使用两者时,我可以工作吗?
$('#property_name').bind('keyup keypress blur', function()
{
$('#headline','#property_name_thumb').val($(this).val());
});
最佳答案
$('#headline, #property_name_thumb').val($(this).val());
一切都在一串中!
关于jquery - 绑定(bind)多个字段到绑定(bind)函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9730372/