I have 2 button elements. On the click of the first button, the second button appears and first one disappears. @Fiddle
$(document).ready(function () {
$("#startClock").click(function () {
$("#startClock").fadeOut().delay(120000).fadeIn();
$("#submitamt").fadeIn().delay(120000).fadeOut();
});
});
<button class="rightbtn" type="button" id="startClock">Start</button>
<button class="rightbtn" type="button" id="submitamt" style="display:none;">Submit</button>
Everything is fine but when the second button replaces the first one it slides from right to left. I want that the second button should replace the first one directly over it, without sliding/taking any space/without affecting CSS
Can anyone tell how to do so?