-1
我有3个输入(JqueryMobile的自动完成)。 使用此功能:删除每个输入Javascript的值
$('.ui-input-clear').attr('onclick', 'delete_email();');
我onclick事件添加到每个清晰的按钮,但我能做些什么只删除同一按钮的输入?
例子:
[<------INPUT------>] [BUTTON] //If I click, the value of THIS input turns ""
[<------INPUT------>] [BUTTON] //If I click, the value of THIS input turns ""
[<------INPUT------>] [BUTTON] //If I click, the value of THIS input turns ""
谢谢,它的工作原理! – Angel 2013-04-23 06:21:58