I have buttons associated with a specific selection, and I want to display the form associated with the selection and remove the buttons when one of them is pressed. I hide all forms at the beginning so that the user first clicks the button. This is the code:
$(document).load(function () {
$("#radial, #rect").hide();
});
$("#rectS").click(function () {
$("#rect").show(slow);
$(".confirm").remove();
});
$("#radialS").click(function () {
$("#radial").show(slow);
$(".confirm").remove();
});
But it does nothing, and no one can explain to me why. Incidentally, hiding at the beginning does not work either. jQuery really disappoints ...
Codepen: http://codepen.io/megakoresh/pen/HJEzx
source
share