<span>How do you pass values:</span></th>below is javascript
<td><select id="type" class="selectpicker" type="text" style="width:150px" name="chkPassPort" required="" onSelect="select()">
<option value="">select</option>
<option value="Custom Values" id="chkYes">Custom Values
</option>
<option value=" Static Values" id="chkNo"> Static Values</option>
</select></td>
<div id="dvPassport" style="display: none">
Custom Values:
<input id="value" type="text" placeholder=" Enter Value " name="value" required="" />
</div>
<div id="dPassport" style="display: none">
Static Values:
<select id="value" class="selectpicker" type="text" style="width:150px" name="value" required="" align="left">
<option value="">select</option>
<option value="state">State</option>
<option value="District">District</option>
<option value="Gender">Gender</option>
<option value="B-group">B-group</option>
</select>
</div>
</tr>
<script language="javascript" type="text/javascript"> function select() { if(document.form.chkPassPort.value=="Custom Values") { $("#dvPassport").show() && $("#dPassport").hide(); } else { $("#dPassport").show() && $("#dvPassport").hide(); } } </script>
Experts Exchange (EE) has become my company's go-to resource to get answers. I've used EE to make decisions, solve problems and even save customers. OutagesIO has been a challenging project and... Keep reading >>
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.