Hello friends, Please tell how can i hide a button inside a div tag? thanks in advance this is urgent. Thanks!!! Manish
<div style="visibility: hidden;"> <tr> <td> Click Here to save your size with us<input type='radio' name="save" onclick="return validateForm1();" value='save'/> </td> </tr> <tr> <td> Click Here to do not save your size with us<input type='radio' name="save" onclick="return validateForm1();" value='notsave'/> </td> </tr></div> i'm using this way but it's not working for me. please tell me a right way how to do it. Thanks! Manish
Try this : <a href="#" id="uploadVideoLink" class="menuLink"> Upload Videos </a> <div id="uploadVideos" class="menu"> <div>sometext</div> <input name="submit" type="submit" value="Upload" id="btn" /> <div>sometext</div> </div> $(document).ready( function upload() { $("#uploadVideoLink").click( function uploadTog() { $("#uploadVideos *:not(#btn)").toggle(); }); });
Why hide something? If it's hidden it's not being used and if you hide it, why waste server resources loading it when you could simply not have it there in the first place?
css way #mydiv a {display:none;} Code (markup): jquery way $("#mydiv a").css({display : none,}); Code (markup):
For hiding the button are you trying to hide it when something else is clicked or always hidden until something is clicked on?