Menu
### this script is working fine. But I have 2 Divs with same classname. When i click edit button of first div then both first and second div start to display. I want to display first div element on click of first div edit button. And second div on click of second edit button. Without repeating the code.
`<script>
$(document).ready(function () {
$(“.insert-data”).hide();
$(“.btn-edit”).click(function () {
$(“.show-data”).hide();
$(“.insert-data”).show();
$(“.btn-edit”).hide();
});
$(“.btn-cancel”).click(function () {
$(“.insert-data”).hide();
$(“.show-data”).show();
$(“.btn-edit”).show();
});
});
</script>