Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Dec 2007
    Posts
    59
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hide Show Div For submit form

    Hi,
    I have any form for tell friends ! How To show Div After Click (tell friend) link and hide div after onsubmit form ? ( using Jquery or java script)
    Example :
    TELL FRIENDS CLICK LINK
    <div id="formhide"></div> (default is hidden).
    After Click Show Loading Message and show form for send data to any email . so if Form is valid Show loading message and message Success ! so hide dive ( to default)

    DMEO: http://www.makaan.com/ ( please search any . . . ) after search click in send email & sms button . you see . . . .

    Thanks

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,919
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    Code:
    document.getElementById("formhide").style.display="none";  // OR "block" to show
    OR
    document.getElementById("formhide").style.visibility = "hidden";  // OR "visible" to show

    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.

  • #3
    New Coder
    Join Date
    Dec 2007
    Posts
    59
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Philip M View Post
    Code:
    document.getElementById("formhide").style.display="none";  // OR "block" to show
    OR
    document.getElementById("formhide").style.visibility = "hidden";  // OR "visible" to show

    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.
    Please step by step or any example code for your idea

  • #4
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,919
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    Quote Originally Posted by eric float View Post
    Please step by step or any example code for your idea
    That was an example. If you are unable to follow this you ought to seriously ask yourself whether you ought to be attempting to meddle with the code you have.

    As we are not clairvoyant and you have not posted your code I cannot give more specific help right now.

    Please post your relevant code (read the forum posting guidelines first).
    BTW, when posting here please help us to help you by following the posting guidelines and wrapping your code in CODE tags. This means use the octothorpe or # button on the toolbar which will insert the tags. You can (and should) edit your previous post. Example:-

    Code:
    alert("This is some JavaScript code!");
    Last edited by Philip M; 11-10-2010 at 01:09 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •