Note that there are some explanatory texts on larger screens.

plurals
  1. POAdding row when dropdownlist item is selected
    primarykey
    data
    text
    <p><img src="https://i.stack.imgur.com/2H9ll.png" alt="enter image description here"></p> <p>I have data rows named module, priority, request date, etc which is acquired dynamically on my website. Is there a way i can add a row under module named "cost center" when the value of computer request is selected from my dropdown list? This is the code for the drop down list.</p> <pre><code> &lt;span id="dg_form_ctl02_lbl_show_tag" style="display:inline-block;background- color:Transparent;border-color:Navy;border-width:3px;border-style:Double;font- family:Arial;font-size:12px;width:130px;"&gt;Module*&lt;/span&gt; &lt;/td&gt;&lt;td&gt; &lt;select name="dg_form$ctl02$DropDownList1" onchange="javascript:setTimeout('__doPostBack(\'dg_form$ctl02$DropDownList1\',\'\')', 0)" id="dg_form_ctl02_DropDownList1"&gt; &lt;option value=""&gt;--select one--&lt;/option&gt; &lt;option value="Cellular Phone"&gt;Cellular Phone Request&lt;/option&gt; &lt;option selected="selected" value="Computer"&gt;Computer Request (Up to VP Approval)&lt;/option&gt; &lt;option value="Account Creation"&gt;Create Network/SAP Account&lt;/option&gt; &lt;option value="Account Delete"&gt;Delete Network/SAP Account&lt;/option&gt; &lt;option value="FIS"&gt;FIS&lt;/option&gt; &lt;option value="FP"&gt;FP&lt;/option&gt; &lt;option value="General"&gt;General Support&lt;/option&gt; &lt;option value="Report"&gt;Reports&lt;/option&gt; &lt;option value="SAP"&gt;SAP&lt;/option&gt; &lt;option value="Web Application"&gt;Web Application&lt;/option&gt; &lt;/select&gt; &lt;/td&gt; &lt;/tr&gt;&lt;tr style="background-color:White;"&gt; &lt;td valign="top"&gt; </code></pre> <p>this is the code i have so far for the alert</p> <pre><code>function alertMe() { var n = document.getElementById("dg_form_ctl02_DropDownList1").value; if (n == "Computer") { alert ('Changed'); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload