javascript - Assigning the value of the sender object to a variable -
i'm using several comboboxes have extract values , concatenate them in textbox. problem use sender.get_selecteditem().get_value();
extract data of each one, each 1 obtains data of combobox, variables acquire same value (it not keep values obtained in previous variable), using telerik controls.
<script type="text/javascript"> function cmp(sender, eventargs { if (document.getelementbyid("ctl00_contentplaceholder_rgpartesrfq_ctl00_ctl05_planta")) { var pl = sender.get_selecteditem().get_value(); var fo = sender.get_selecteditem().get_value(); var gr = sender.get_selecteditem().get_value(); var di = document.getelementbyid("ctl00_contentplaceholder_rgpartesrfq_ctl00_ctl05_txtdiam1").value; var lo = document.getelementbyid("ctl00_contentplaceholder_rgpartesrfq_ctl00_ctl05_txtlongt").value; var codemp = document.getelementbyid("ctl00_contentplaceholder_rgpartesrfq_ctl00_ctl05_txtcmp").value; document.getelementbyid("ctl00_contentplaceholder_rgpartesrfq_ctl00_ctl05_txtcmp").value = "m" + pl + fo + gr + di + lo; } else if (document.getelementbyid("ctl00_contentplaceholder_rgpartesrfq_ctl00_ctl02_ctl04_planta").value !== null) { } } </script>
Comments
Post a Comment