javascript - How can I hide/unhide a form? -


I am playing with jquery and created a form that submits information without refreshing a page, but I After this, it should be followed by displaying a form for people to edit, but what I want to do is, it is a little different.

I want to display a user profile page, and then there is a little edit link next to each item, due to which the text field is displayed, click on edit I believe I can submit the form without refreshing, but when I clicked on the 'Edit' button without refresh, how can I see a form? Is?

How can I accomplish this or better than what I should do to discover how to do it? I went through the sample items on the jquery site and none of them was able to hide / hide

< P> Here is a quick example of how I handle this concept, I follow it with posting and valuation and all of a little server-side scripting etc, but it works as a complete staping stone Can do. It is important to remember that javascript / jquery is all smoke and mirrors because all of your client-side-clair-side is hidden on the screen or otherwise it needs to be essentially in this case. Near 2 elements are shown by default, while others hides, you create an argument that hides one on the other when one is chosen, and whatever you require, respectively The Oti.
  & lt; Div id = "wrapper" & gt; & Lt; Div id = "container" & gt; & Lt; Div id = "stored value" & gt; & Lt; Span & gt; Hello & lt; / Span & gt; [& Lt; A href = "javascript: zero (0);" Id = "editvalue" & gt; Edit & lt; / A & gt;] & lt; / Div & gt; & Lt; Div id = "altervalue" style = "display: none;" & Gt; Input   



Comments