¡@

Home 

2014/10/16 ¤W¤È 12:03:28

jquery Programming Glossary: firstcombobox

Clean old options from child dropdown when receiving data by JSON

http://stackoverflow.com/questions/9238267/clean-old-options-from-child-dropdown-when-receiving-data-by-json

second dropdown having id combo1 .getJSON 'combo1.jsp' firstcombobox this.value function responseData #combo1 .append option option.. script body First dropdown select id combo name firstcombobox option value select option option value a A option option value.. @page import net.sf.json.JSONArray String firstcombobox request.getParameter firstcombobox if firstcombobox.equalsIgnoreCase..

Clean old options from child dropdown when receiving data by JSON

http://stackoverflow.com/questions/9238267/clean-old-options-from-child-dropdown-when-receiving-data-by-json

.change function by onchange event in first dropdown I populate second dropdown having id combo1 .getJSON 'combo1.jsp' firstcombobox this.value function responseData #combo1 .append option option .html responseData.name .val responseData.name After getting.. #secondtextbox .val data.roll_no #thirdtextbox .val data.fine script body First dropdown select id combo name firstcombobox option value select option option value a A option option value b B option select Second dropdown select id combo1 name.. select option select body combo1.jsp @page import net.sf.json.JSONObject @page import net.sf.json.JSONArray String firstcombobox request.getParameter firstcombobox if firstcombobox.equalsIgnoreCase a If selected value in first dropdown is A then 1 will..