1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

how to hide button

Discussion in 'PHP' started by mkd1108, Jul 23, 2013.

  1. #1
    Hello friends,
    SEMrush
    Please tell how can i hide a button inside a div tag? thanks in advance this is urgent.


    Thanks!!!
    Manish
     
    mkd1108, Jul 23, 2013 IP
    SEMrush
  2. mkd1108

    mkd1108 Active Member

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    86
    #2
    <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
     
    mkd1108, Jul 23, 2013 IP
  3. bostenrose

    bostenrose Greenhorn

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #3
    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();
    });
    });
     
    bostenrose, Jul 24, 2013 IP
  4. scottlpool2003

    scottlpool2003 Well-Known Member

    Messages:
    1,708
    Likes Received:
    49
    Best Answers:
    9
    Trophy Points:
    150
    #4
    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?
     
    scottlpool2003, Jul 24, 2013 IP
    deathshadow likes this.
  5. EmmanuelFlossie

    EmmanuelFlossie Active Member

    Messages:
    159
    Likes Received:
    11
    Best Answers:
    2
    Trophy Points:
    65
    #5
    css way
    
    #mydiv a {display:none;}
    
    Code (markup):
    jquery way
    
    $("#mydiv a").css({display : none,});
    
    Code (markup):
     
    EmmanuelFlossie, Jul 24, 2013 IP
  6. mkd1108

    mkd1108 Active Member

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    86
    #6
    thanks!! everyone for good replys.
     
    mkd1108, Jul 25, 2013 IP
  7. Tom Webb

    Tom Webb Peon

    Messages:
    19
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    3
    #7
    For hiding the button are you trying to hide it when something else is clicked or always hidden until something is clicked on?
     
    Tom Webb, Jul 29, 2013 IP