I would like to call a text area on click of a specific div, eg i have a div and when the user clicks on the div, the text area appears.
i would also like to make 3 divs and when each one is clicked, different html elements are shown, for example, one one div is clicked, the text area is shown, when another div is clicked a submit button is shown in the same area that the text area would be shown in
Please help! thanks.
You can make elements visible and invisible by changing their style.display attribute in javascript.
A css value of display:none will make an element invisible.
A css value of display:block will make an element visible, and it will be treated like a block element.
http://www.w3schools.com/cssref/pr_class_display.asp