|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Showing Hiding forms in divs
Hey people
![]() I have a little problem. I have made a forum script, that relies on a javascript. When you click on the forum input, the whole input shows, and when you click "reply" the reply form shows in the current input you where reading. But the reply form does not show correctly. For some reason, the <form></form> tag is absolute, and therefore, shows on top of the next input, instead of inbetween. the javascript: function expan(name,type) { document.getElementById(name).className=type } the genneral div: <div> blablablablabla... othe stuff... <a onClick="expan('reply','visible')">reply</a> <div> Reply: <form> <input type="text" /> </form> </div> </div> So the outer div, shows fine, and colapses fine, but the inner div, does not show, because of the form element. If you comment out the form element, the expand / colapse works fine. - Emuen |
|
#2
|
||||
|
||||
|
You need to put the id attribute on the <DIV> tag you wish to show.
Code:
<div id="reply" > Reply: <form> <input type="text" /> </form> </div>
__________________
Daryl's Homepage | My Blogroll | My Profile | Firefox supporter! DevArticles Forum Moderator "The net is a waste of time, and that's exactly what's right about it." -- William Gibson |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Showing Hiding forms in divs |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|