javascript - Jquery Dropdown on change not working -
this code below should capture selected value , add div. can't life of me code respond. i've tried different selectors , event listeners still doesn't work. appreciated!
$("#mapdatatable select").on("change", function(){ var option = $(this).val(); $("#exbuilder").innerhtml += ' '+option; }); $("#mapdatacolumn select").on("change", function(){ var option = $(this).val(); $("#exbuilder").innerhtml += ' '+option; }); $("#analyzefunction").on("change", function(){ var option = $(this).val(); $("#exbuilder").innerhtml += ' '+option; }); $("#parametervalue select").on("change", function(){ var option = $(this).val(); $("#exbuilder").innerhtml += ' '+option; });
map datatable t_
<div id="mapdatacolumn" name="mapdatacolumn" style="width: calc(25% - 4px)" class='inlineblock hundredheight'> <select id=""> <option value="" disabled selected>map data column</option> <option value="c_">c_</option> </select> </div><!--mapdatacolumn--> <div id="analyzefunction" name="analyzefunction" style="width: calc(25% - 4px)" class="inlineblock hundredheight"> <select id=""> <option value="" disabled selected>analyze function</option> <option value="add">add +</option> <option value="subtract">subtract -</option> <option value="multiple">multiply *</option> <option value="divide">divide /</option> <option value="greater">greater ></option> <option value="less">less <</option> <option value="greatequal">greater | equal</option> <option value="lessequal">less | equal</option> <option value="equal">equal =</option> <option value="notequal">not equal <></option> <option value="and">and &</option> <option value="or">or |</option> </select> </div><!--analyzefunction--> <div id="parametervalue" name="parametervalue" style="width: calc(25% - 4px)" class="inlineblock hundredheight"> <select id=""> <option value="" disabled selected>display parameter value</option> <option value="amount">amount</option> <option value="sum">sum</option> <option value="average">average</option> <option value="count">count</option> <option value="percentage">percentage</option> <option value="min">minimum</option> <option value="max">maximum</option> <option value="median">median</option> </select> </div><!--parametervalue-->
Comments
Post a Comment