Hello everyone,
can you help me to solve my problem, I have a registration with two same div class..once the button clicked i want to hide the first div and the second div must appear. How can i do that?
Show/hide two divs with same class
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Alok UniyalRank #8,369 · 223 reputationPosted Oct 4, 2012, 11:30 PM EDT
Charan raj129 reputationPosted Oct 5, 2012, 12:49 AM EDT
u can do using jquery.
div1
div2
$(document).ready(function(){
$('#btnOk').click(function(){
var divs = $('#maindiv .login');
divs [0].style.display='none';
});
});
mary jean ligasRank #3,676 · 400 reputationPosted Oct 5, 2012, 12:50 AM EDT