title: Access an attribute value from another jsp In jquery
body: <p>I have 2 jsp's. editAttribute.jsp &amp; securitySetting.jsp</p>
  
  <p>And having a Hidden variable in form which is to be posted in editAttribute.jsp (which is an individual page).</p>
  
  <pre><code>&lt;input type="hidden" name="securitySetting" id="securitySetting" value=""&gt;
  </code></pre>
  
  <p>and have some radio options in securitySetting.jsp(another Page)</p>
  
  <p>I need to set the hidden variable value based on the value which I selected in securitySettings.jsp</p>
  
  <pre><code>var sectype = $("input:radio[name='secType']:checked").val();
  if (sectype == 'open') {
    $("#securitySetting").val("N");
    console.log("In open" + $("#securitySetting").val());
  } else if (sectype == 'restricted') {
    var sg = $("#sgrp").val();
    $("#securitySetting").val(sg);
    console.log("In restricted" + $("#securitySetting").val());
  }
  </code></pre>
  
  <p>But I could nt get the control of the <code>$("#securitySetting")</code> object in this current page. 
  How can I access the the hidden input object of editAttribute page from here.</p>
  
  <p>ANy ways of achieving this???</p>