Support » Plugins and Hacks » [Plugin: Contact Form 7] Radio button expand field

[Plugin: Contact Form 7] Radio button expand field

  • Hi,
    I’m tring to prepare a solution similar to following, regardless of the core code of plugin.

    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Radio Button Event Page</title>
    <script language="javascript">
    function change_display(field) {
    	if (field != "2"){
    		document.getElementById("div1").style.display ='block';
    		document.getElementById("div2").style.display = 'none';
    	else {
    		document.getElementById("div1").style.display ='none';
    		document.getElementById("div2").style.display = 'block';
    <input type="radio" name="rdo" id="rdo" value="1" onclick="change_display(this.value);" /> - option 1<br />
    <input type="radio" name="rdo" id="rdo" value="2" onclick="change_display(this.value);" /> - option 1<br />
    	<div id="div1" style="display:none">DIV 1</div>
    	<div id="div2" style="display:none">DIV 2</div>

    Any idea/solution?


  • The topic ‘[Plugin: Contact Form 7] Radio button expand field’ is closed to new replies.
Skip to toolbar