...

View Full Version : Hide Show Div For submit form



eric float
11-10-2010, 12:15 PM
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

Philip M
11-10-2010, 12:25 PM
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.

eric float
11-10-2010, 12:48 PM
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

Philip M
11-10-2010, 01:59 PM
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:-



alert("This is some JavaScript code!");



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum