jQuery Conditional Statement Question
What am I doing wrong? I have a div that I want to show based on what the user selects on a previous page. The values are being passed from page to page using PHP. The div is still hidden even when the user selects "Yes" option.
- jQuery(document).ready(function(){
- jQuery('#GoBack').click(function(){
- parent.history.back();
- return false;
- });
- //var t = '<?php echo $TransferOwnership; ?>';
- //if (t == "Yes") jQuery('#NewOwnerInfo').show();
- //else jQuery('#NewOwnerInfo').hide();
- });