$(document).ready(function () {
$("#show").click(function () {
$("img:first").show();
});
});
$(document).ready(function () {
$("#hide").click(function () {
$("img:first").hide();
});
});
If the HIDE button is triggered i want the label and the HIDE button to vanished and vice versa. please help!
2
Answers
Please replace this
{{your_image_path}}
with your image.You can use a class on the label, image, and button to toggle the visibility of those elements. You can then use jQuery to add and remove classes from those elements.