hi
this is my code but here i m unable to hide next button on last div
Employee Info
Add your content Div1
Add your content DIV2
Add your content DIV3
next
prev
$(document).ready(function(){
// Hide all div
$("#div2").hide();
$("#div3").hide();
$("#div1").hide();
$("#next").hide();
$("#prev").hide();
// Hide all div
$("#spnEmp").click(function(){
$("#div1").show();
$("#next").show();
$("#prev").show();
});
$("#next").click(function(){
if ($("#label1 div:visible").next().length != 0)
$("#label1 div:visible").next().show().prev().hide();
else {
$("#label1 div:visible").hide();
$("#label1 div:first").show();
}
return false;
});
$("#prev").click(function(){
if ($("#label1 div:visible").prev().length != 0)
$("#label1 div:visible").prev().show().next().hide(); else {
$("#label1 div:visible").hide();
$("#label1 div:last").show();
}
return false;
});
});
Midhun TpPosted Sep 2, 2016, 1:20 AM
Midhun TpPosted Sep 2, 2016, 2:17 AM
Anjali KhanPosted Sep 2, 2016, 2:00 AM
Anjali KhanPosted Sep 2, 2016, 1:33 AM
Midhun TpPosted Sep 2, 2016, 1:25 AM
Midhun TpPosted Sep 2, 2016, 1:23 AM
Anjali KhanPosted Sep 2, 2016, 1:12 AM
Midhun TpPosted Sep 2, 2016, 1:02 AM
Anjali KhanPosted Sep 2, 2016, 12:51 AM
Midhun TpPosted Sep 2, 2016, 12:38 AM
Anjali KhanPosted Sep 1, 2016, 11:51 PM
Midhun TpPosted Sep 1, 2016, 7:30 AM
Anjali KhanPosted Sep 1, 2016, 7:23 AM
Venkata SubbareddyPosted Sep 1, 2016, 6:52 AM
Midhun TpPosted Sep 1, 2016, 5:42 AM
Anjali KhanPosted Sep 1, 2016, 5:23 AM
Midhun TpPosted Sep 1, 2016, 5:16 AM
Anjali KhanPosted Sep 1, 2016, 5:13 AM
Midhun TpPosted Sep 1, 2016, 5:09 AM