I use jQuery UI and try to disable all text fields in a data group, but I only do this once when loading tabs. Here is what I still have:
$(function () {
$("#tabs").tabs({
cache: true,
load: function (event, ui) {
$(".data-group").one('load', function () {
$(this).find(':text').attr('disabled', 'disabled');
});
},
select: function (event, ui) {
}
});
});
As a result, I can enable text fields (through the interface), enter data, but when I switch from the tab and switch back, this value is in the text field (and the verification messages are displayed if this is an error in the data), but all blocks are disabled.
Suggestions for fixing this?
source
share