and I try to toggle the display of a specific div, using :onclick
(1st radio hide, 2nd radio display) the div
but i cannot get it right (tried various solution with js, but
without any success..)
<tr><td>
<div id="contact_by" style="display:none;">
<p>contacted by ... textfield to be inserted there</p>
</div
</td></tr>
</table>
div class="buttons">
<input class="button"... submit button area...
</div>
Just a word of warning... since you have two different elements
calling toggle via onclick, you may have a different user experience
than you expect. Specifically, clicking the first radio button twice
you will toggle the div visible and then invisible. You will have
more consistent results if you use hide() and appear() explicitly.
Unfortunatly, even with $('mydiv').show() and $('mydiv').hide() , it
doesn't work
1- the div is displayed in a glance then hidden
2- the radio button doesn't switch at all...