Access an attribute value from another jsp In jquery -



Access an attribute value from another jsp In jquery -

i have 2 jsp's. editattribute.jsp & securitysetting.jsp

and having hidden variable in form posted in editattribute.jsp (which individual page).

<input type="hidden" name="securitysetting" id="securitysetting" value="">

and have radio options in securitysetting.jsp(another page)

i need set hidden variable value based on value selected in securitysettings.jsp

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()); }

but nt command of $("#securitysetting") object in current page. how can access the hidden input object of editattribute page here.

any ways of achieving this???

jquery jsp

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -