Click here to Skip to main content
15,886,701 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have two forms, one on its own html page inwhich I use javascript for validation of inputs.

I have another html page called formok.html where if the form that the user is filling out is valid then the user is redirected to formok.html.

In form.html I have a div where the
will be filled with the apporiate thankyou message depending on which form the user has filled out and is valid .

My question is through javascript how can I reference another html file and change its divcontent?

Cheers
Posted

1 solution

why you are changing div content just create two div, hide second div. perform some action on first div on processing / submit click set visiblity="true" on second div nad visibility="false" for first div
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900