1
我想取消1個CSS類,它工作正常,同時2個輸入。但我只能取消css類。JQuery Draggable取消
這怎麼解決?
$("#move").mousedown(function() {
$("#draggable").draggable({cancel : '.scroll',
cancel : 'input'
});
});
我想取消1個CSS類,它工作正常,同時2個輸入。但我只能取消css類。JQuery Draggable取消
這怎麼解決?
$("#move").mousedown(function() {
$("#draggable").draggable({cancel : '.scroll',
cancel : 'input'
});
});
你的代碼有2個問題:
{cancel : '.scroll',cancel : 'input'}
,因爲你使用的兩個屬性具有相同的名稱不是有效的javascript object literal。嘗試使用multiple selector:
$("#draggable").draggable({cancel : '.scroll,input'});
請嘗試以下方法。
取消: '.scroll,輸入'
謝謝,這個做的工作 – 2013-04-24 06:25:27