Hello,
I'm trying to display a specific block of html with some form elements based on whatever is selected in a radio button.
Below is the framework of what I have, I didn't include any of the JQUERY that I tried because I couldn't get anything to work. Any chance someone could help me fill in the blanks?
TIA!
<script type="text/javascript" src="/js/jquery-1.3.2.min.js"></script>
<script src="/js/jquery.chainedSelects.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
$(document).ready(function() {
showValBox = function(data) {
};
});
</script>
<form action="" method="post" id="SomeForm" />
<table>
<tr>
<td class="td-ctr">Size</td>
<td class="td-ct"><input type="radio" name="Radio" value="Value1" onChange="showValBox(this.value)" /> Value <input type="radio" name="Radio" value="Value2" onChange="showValBox(this.value)" /> Value</td>
</tr>
<div id="Value1" style="display:none">
<tr>
<td class="td-ctr">Only if Value 1</td>
<td class="td-ct"><input type="text" name="SomeName" value="" /></td>
</tr>
</div>
<div id="Value2" style="display:none">
<tr>
<td colspan="2" class="td-ct">Online if Value 2</td>
</tr>
<tr>
<td class="td-ctr">SomeName1</td>
<td class="td-ct"><input type="text" name="SomeName1" value="" /></td>
</tr>
<tr>
<td class="td-ctr">SomeName2</td>
<td class="td-ct"><input type="text" name="SomeName2" value="" /></td>
</tr>
<tr>
<td class="td-ctr">SomeName3</td>
<td class="td-ct"><input type="text" name="SomeName3" value="" /></td>
</tr>
<tr>
<td class="td-ctr">SomeName4/td>
<td class="td-ct"><input type="text" name="SomeName4" value="" /></td>
</tr>
<tr>
<td class="td-ctr">SomeName5</td>
<td class="td-ct"><input type="text" name="SomeName5" value="" /></td>
</tr>
<tr>
<td class="td-ctr">SomeName6</td>
<td class="td-ct"><input type="text" name="SomeName6" value="" /></td>
</tr>
<tr>
<td class="td-ctr">SomeName7</td>
<td class="td-ct"><input type="text" name="SomeName7" value="" /></td>
</tr>
</div>
</table>
</form>