jQuery Conditional Statement Question

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.

  1. jQuery(document).ready(function(){
  2.    jQuery('#GoBack').click(function(){
  3.        parent.history.back();
  4.        return false;
  5.    });
  6.    //var t = '<?php echo $TransferOwnership; ?>';
  7.    //if (t == "Yes") jQuery('#NewOwnerInfo').show();
  8.     //else jQuery('#NewOwnerInfo').hide();
  9. });