Note that there are some explanatory texts on larger screens.

plurals
  1. POshows the div if the value of the input field matched
    primarykey
    data
    text
    <p>the hidden div will appear if the selected value from the form matches the value of the div</p> <p>the script for detecting the value of the input field</p> <pre><code>&lt;script&gt; $(document).ready(function() { $("input[name$='sel']").ready(function() { var test = $(this).val(); $("div.desc").hide(); $("#sel" + test).show(); }); }); &lt;/script&gt; </code></pre> <p>value of the field and the divs that are supposed to show when the value of the input field is correct</p> <pre><code>&lt;table&gt;&lt;tr&gt;&lt;td&gt; &lt;strong&gt;&lt;font size="3" &gt;Payment Method&lt;/font&gt;&lt;/strong&gt; &lt;p&gt; &lt;?php echo $_POST["sel"]; ?&gt; &lt;input type="radio" name="sel" value="&lt;?php echo $_POST["sel"]; ?&gt;" /&gt; &lt;/p&gt; &lt;!====================================================================================&gt; &lt;/td&gt;&lt;td&gt; &lt;img src="img/sep.png" /&gt; &lt;/td&gt;&lt;td&gt; &lt;!====================================================================================&gt; &lt;div id="selCreditCard" class="desc"&gt; &lt;table&gt;&lt;tr&gt;&lt;td&gt; &lt;p&gt; &lt;label for="card"&gt;&lt;strong&gt;Card Number : &lt;/font&gt;&lt;/strong&gt;&lt;/label&gt;&lt;?php echo $_POST["card"]; ?&gt; &lt;input name="card" type="hidden" id="card" value="&lt;?php echo $_POST["card"]; ?&gt;" style="width:85px;" class="validate[custom[card]] text-input" /&gt; &lt;/p&gt; &lt;br&gt; &lt;label for="ccv" &gt;&lt;strong&gt;CVV2 Code : &lt;/strong&gt;&lt;/label&gt;&lt;?php echo $_POST["ccv"]; ?&gt; &lt;input type="hidden" name="ccv" id="ccv" style="width:30px;margin-bottom:2px;margin-left:12px;" value="&lt;? php echo $_POST["ccv"]; ?&gt;" /&gt; &lt;br&gt; &lt;label&gt;&lt;strong&gt;Expiration Date&lt;/strong&gt; &lt;p&gt; &lt;label for="mon"&gt;&lt;strong&gt;Month : &lt;/strong&gt;&lt;/label&gt;&lt;?php echo $_POST["mon"]; ?&gt; &lt;input type="hidden" name="mon" id="mon" style="width:15px;" value="&lt;?php echo $_POST["mon"]; ?&gt;" /&gt; &lt;label for="yir" &gt;&lt;strong&gt;Year : &lt;/strong&gt;&lt;/label&gt;&lt;?php echo $_POST["yir"]; ?&gt; &lt;input type="hidden" name="yir" id="yir" style="width:15px;" value="&lt;?php echo $_POST["yir"]; ?&gt;" /&gt; &lt;/p&gt; &lt;/div&gt; &lt;!====================================================================================&gt; &lt;div id="selPaypal" class="desc" style="display: none;margin-left:20px;margin-top:1px;margin-bottom:1px;"&gt; Please make sure that you have paid the amount on the Paypal payment page.&lt;br&gt; If not click here to proceed &lt;img src="img/ppal.png" height="36" style="margin-bottom:-13px;" onclick="window.open ('paypal/paypal.html','Paypal','width=450,height=300,left=160,top=170');" style="cursor:pointer;"/&gt; &lt;/div&gt; &lt;!====================================================================================&gt; &lt;div id="selWireTransfer" class="desc" style="display: none;margin-left:20px;margin-top:0px;margin-bottom:-5px;"&gt; &lt;font size="0.5"&gt; &lt;strong&gt;Processing Time&lt;/strong&gt;&lt;br&gt; A bank wire is not an instant transfer. "Two to three business days" are&lt;br&gt; required to process the transfer and allow the recipient to see the wired funds.&lt;/font&gt; &lt;/div&gt; &lt;!====================================================================================&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt; </code></pre> <p>i cant get the divs to show on the next page even if the correct value was entered on the field what approach will be much efficient or do you think will work for this code? </p>
    singulars
    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.
    1. This table or related slice is empty.
    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