| | |
Javascript form managment on the fly!
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Is there a way using javascript to change the display of a form after it as been rendered?
I won’t to remove a checkbox on a form if a certain condition is true.
Since this case is not the norm, the default rendering displays the checkbox even though it’s not a valid selection.
And the check I guess would have to come when the link to display the form is clicked.
Any ideas??
Thanks
I won’t to remove a checkbox on a form if a certain condition is true.
Since this case is not the norm, the default rendering displays the checkbox even though it’s not a valid selection.
And the check I guess would have to come when the link to display the form is clicked.
Any ideas??
Thanks
you can use the style property 'display' to show/hide elements in your web page. Its pretty simple, if you give content that you want to manipulate an id:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
// to hide document.getElementById("yourDivOrElementId").style.display = 'none'; // to show document.getElementById("yourDivOrElementId").style.display = 'block';
Thanks that worked for input element. Is there a way to hide elements that don't have an id? I have a label for the input element that looks like this
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<label for"sameIDasInput">LableText</label>
I just put everything that needed to be modified on the fly between a div tag like so
With the visibility set.
I used javascript to update the visibility.
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<div ID="test0" style="visibility:visible">
With the visibility set.
I used javascript to update the visibility.
![]() |
Similar Threads
- Javascript, Form fields validation and submit (JavaScript / DHTML / AJAX)
- Form not sending email (PHP)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: How to make javascript form autochange - "Onchange"?
- Next Thread: Drag and Drop
| Thread Tools | Search this Thread |
acid2 ajax ajaxexample ajaxjspservlets array browser bug captchaformproblem cart checkbox child class close codes createrange() css cursor date debugger decimal dependent design disablefirebug dom dropdown editor element embed engine enter error events explorer ext file firefox focus form forms frameworks getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe images index internet java javascript javascripthelp2020 jquery jsf jsfile jsp jump libcurl listbox maps masterpage math media menu mp4 object onmouseoutdivproblem onmouseover onreadystatechange parent paypal pdf php position post problem programming progressbar prototype redirect runtime safari scale scriptlets scroll search security shopping size software toggle unicode w3c web wysiwyg \n





