-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