First I display a div container with disabled input fields.
$("#button").click(function() {
$(".disable-input").prop('disabled', true);
})
And with a second button inside the displayed div container I want to enable the change for input fields after the first click and after the second one the enabled input fields should be disabled. For example: Display my customers via div container and inside this div container I can change them with a click on the button. What is my mistake?
var count = 0;
if(count == 0) {
$("#edit").click(function(){
$(".disable-input").prop('disabled', false);})
count = 1;
}
if(count == 1) {
$("edit").click(function(){
$(".disable-input").prop('disabled', true);})
count = 0;
}