0
我有這樣一段代碼給我用它的標籤一個選擇下拉變更類型=複選框,而不是選擇,jQuery的 - 在這種代碼
LeaveRuleAdapter.method('getFormFields', function() {
return [
[ "employee_can_apply", {"label":"Employees can apply for this leave type","type":"select","source":[["Yes","Yes"],["No","No"]]}]
});
我有2個問題,
1. Is above codes are written on jquery or it's any jquery plugin ?
2. Is there any way to include checkboxes insted of select.
(我在jQuery的初學者,所以不介意如果有什麼是錯的這個問題)
我猜[此(lib.js)(https://bitbucket.org /thilina/icehrm-opensource/commits/a7007624f522#chg-admin/leaves/lib.js)是使用此代碼的庫。您可以查看內部的更多應用程序。 –
是的,我只在這個Opensource HRM上工作!我已經檢查了所有其他模塊,很遺憾他們沒有使用任何其他類型,除了文本和選擇 – Vind
如果你想從某些'forms'中得到一些'checkboxes'並且用它們做一些事情,你可以編輯你的文章關於頁面的相關部分的'html'輸出代碼。我們可能會相應地提供帶有「jquery」或純「js」的解決方案。 –