Note that there are some explanatory texts on larger screens.

plurals
  1. POJquery to create a disable function
    primarykey
    data
    text
    <p>I want to create a disable function on <code>select</code> option(grant type),When i select a Option form select field some of form field should be disabled. and by selecting another option some other option should be disabled and previous disable options has to be enabled.</p> <pre><code>&lt;form action="/execomp/addexeccomp" method="post" id="addDetailsForm"&gt; &lt; table align="center"&gt; &lt;tr&gt; &lt;td&gt;Grant Type&lt;/td&gt; &lt;td&gt;&lt;select name="granttype" id="grnt" /&gt; &lt;option value="ISO"&gt;Incentive Stock Option&lt;/option&gt; &lt;option value="NSO"&gt;Non Qualified Stock Option&lt;/option&gt; &lt;option value="SB"&gt;Stock Bonus &lt;/option&gt; &lt;option value="ESOP"&gt;Employee Stock Ownership Plan&lt;/option&gt; &lt;option value="RS"&gt;Restricted Stock&lt;/option&gt; &lt;option value="RSU"&gt;Restricted Stock Unit&lt;/option&gt; &lt;option value="ESPP"&gt;Employee Stock Purchase Plan&lt;/option&gt; &lt;/select&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr id="iss"&gt; &lt;td&gt;Issuer&lt;/td&gt; &lt;td&gt;&lt;input type="text" name="issuer" value="" id="iss"/&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr id="date"&gt; &lt;td&gt;Grant Date&lt;/td&gt; &lt;td&gt; &lt;input type="text" id="grantdate" name="grantdate" class="PopUpDate" style="display: inline;"/&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr id="nou"&gt; &lt;td&gt;Number of Units&lt;/td&gt; &lt;td&gt;&lt;input type="text" name="numberofunits" value="" /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr id="gp"&gt; &lt;td&gt;Grant Price ($)&lt;/td&gt; &lt;td&gt;&lt;input type="text" name="price" value="" /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr id="fpu"&gt; &lt;td&gt;FMV Per Unit ($)&lt;/td&gt; &lt;td&gt;&lt;input type="text" name="fmvperunitatgrant" value="" /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr id="vt"&gt; &lt;td&gt;Vesting Type&lt;/td&gt; &lt;td&gt;&lt;select name="vestingtype" /&gt; &lt;option value="G"&gt;Graduated&lt;/option&gt; &lt;option value="C"&gt;Cliff&lt;/option&gt; &lt;option value="N"&gt;Neither&lt;/option&gt; &lt;/select&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr id="vf"&gt; &lt;td&gt;Vesting Frequency&lt;/td&gt; &lt;td&gt; &lt;select name="vestingfrequency" /&gt; &lt;option value="A"&gt;Annual&lt;/option&gt; &lt;option value="Q"&gt;Quarterly&lt;/option&gt; &lt;option value="M"&gt;Monthly&lt;/option&gt; &lt;/select&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr id="vpp"&gt; &lt;td&gt;Vesting % Per Period&lt;/td&gt; &lt;td&gt;&lt;input type="text" name="vestingfractionperperiod" value="" /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr id="vd"&gt; &lt;td&gt;Vesting Duration&lt;/td&gt; &lt;td&gt;&lt;input type="text" name="vestingperiodyrs" value="" /&gt; Years&lt;/td&gt; &lt;/tr&gt; &lt;tr id="set"&gt; &lt;td&gt;Settlement Option&lt;/td&gt; &lt;td&gt;&lt;select name="settlementoption" id="sett" /&gt; &lt;option value="C"&gt;Cash&lt;/option&gt; &lt;option value="S"&gt;Stock&lt;/option&gt; &lt;option value="N"&gt;Not Applicable&lt;/option&gt; &lt;/select&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr id="ad"&gt; &lt;td&gt;Annual Dividend&lt;/td&gt; &lt;td&gt;&lt;input type="text" name="annualcashdividendperunit" value="" /&gt;%&lt;/td&gt; &lt;/tr&gt; &lt;tr id="dg"&gt; &lt;td&gt;Dividend Growth&lt;/td&gt; &lt;td&gt;&lt;input type="text" name="dividendgrowth" value="" /&gt;%&lt;/td&gt; &lt;/tr&gt; &lt;tr id="cp"&gt; &lt;td&gt;Current Price&lt;/td&gt; &lt;td&gt;&lt;input type="text" name="curpriceperunit" value="" /&gt;%&lt;/td&gt; &lt;/tr&gt; &lt;tr id="ar"&gt; &lt;td&gt;Annual Return&lt;/td&gt; &lt;td&gt;&lt;input type="text" name="annualreturn" value="" /&gt;%&lt;/td&gt; &lt;/tr&gt; &lt;tr id="ownr"&gt; &lt;td&gt;Owner&lt;/td&gt; &lt;td&gt; &lt;select name="owner" /&gt; &lt;option value="client"&gt;Client&lt;/option&gt; &lt;option value="spouse"&gt;Spouse&lt;/option&gt; &lt;option value="trust"&gt;Trust&lt;/option&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr id="bc"&gt; &lt;td&gt;Brokerage Company&lt;/td&gt; &lt;td&gt;&lt;input type="text" name="brokeragecompany" value="" /&gt;&lt;/td&gt; &lt;/tr&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
 

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