Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

modifying forms using javascrip

Status
Not open for further replies.

michaelh613

Programmer
Nov 16, 2007
9
US
I have a form which is setup traditionally using tables. I know its not Web Standard but it is an older site built by someone else in Frontpage. The form has a field category and subcategory with the ability to make a new category and subcategory. When new is chosen I want that field to turn from a select field to a text input field. I am able to do that one at a time using onchange if the variable is new call a PHP script using javascript which outputs one row. However I cannot have it change two rows at one time. It appears that is not supported using innerHTML. Does anyone know how I would do this or a tutorial I could use. I'm a newbie and have a book on this on the way.

Code:
function stateChanged()
{
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
document.getElementById("txtHint").innerHTML=xmlHttp.responseText
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top