in this below code i have to call the function in thsi function ia hve hide some fields in the body onload but its working fine but when ever i click that jsp page
the page loding time its shows all the filds and that is hide .can i use any other event in this .....
Expand|Select|Wrap|Line Numbers
- <script language="javascript">
- function Mysee(){
- var groupnoVal = document.all.groupno.value;
- if(groupnoVal=='00'){
- document.all.act.style.display='NONE';
- document.all.nam.style.display='NONE';
- document.all.ic.style.display='NONE';
- }
- else (groupnoVal=='001'){
- document.all.act.style.display='';
- document.all.nam.style.display='';
- document.all.ic.style.display='';
- }
- }
- </script>
- <body onload="Mysee()">
- <table width="100%" border="0" cellpadding="2" cellspacing="2">
- <tr>
- <td width="24%" class="labeltext">Limit Group Type</td>
- <td width="2%" class="blanktext">:</td>
- <td width="74%" class="blanktext">
- <html:select property="groupno" styleClass="dropdown" value="${X51.groupno}"onblur="getRimData(document.forms[0], '/ILICTreasury/banker-web/X51.do', this, 'IX51001')" onchange="Mysee()">
- <html:option value="00">Please Select</html:option>
- <html:option value="001">001 - COUNTERPARTYS LIMITS</html:option></html:select></td>
- </tr>
- <tr id="act">
- <td width="24%" class="labeltext">Act No./DealerID</td>
- <td width="2%" class="blanktext">:</td>
- <td width="74%" class="blanktext">
- <html:text property="dealerid" styleClass="textfield" size="15" maxlength="14" value="${X51.actno}"/></td></tr>
- <tr id="nam">
- <td width="24%" class="labeltext">NAME</td>
- <td width="2%" class="blanktext">:</td>
- <td width="74%" class="blanktext">
- <html:text property="name" styleClass="textfield" size="15" maxlength="14" value="${X51.name}"/></td></tr>
- <tr id="ic">
- <td width="24%" class="labeltext">PASSPORT NO</td>
- <td width="2%" class="blanktext">:</td>
- <td width="74%" class="blanktext">
- <html:text property="icno" styleClass="textfield" size="15" maxlength="14" value="${X51.icno}"/></td></tr>