I am using jQuery UI and trying to disable all text boxes in a data group, but only do so once per loading of the tabs. Here is what I have so far:
$(function () {
$("#tabs").tabs({
cache: true,
load: function (event, ui) {
$(".data-group").one('load', function () {
$(this).find(':text').attr('disabled', 'disabled');
});
},
select: function (event, ui) {
// Do Stuff
}
});
});
The result is that I can enable the text boxes (via the interface), enter data, but the when I switch away from the tab and switch back, the value is in the text box (and validation messages are shown if there is an error in the data), but all boxes are disabled.
Suggestions for fixing this?