java - Change div class position which return from servlet class -


i have single html file contains several div elements. in second div element, have registration form on submit request goes servlet class , store value in database , return html file. first div element open , want after return servlet class second div element registration open.

how can achieve it?

document.getelementbyid('div1').style.display='none'; document.getelementbyid('div2').style.display='block'; 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -