Hi,
I want to disable fields based on their name (I have a logic for it).
For this I have created a javascript function which will execute on page load, simmilar to:
function disable_fields() {
$(".clsTest").each(function(){
$(this).setEnabled(false);
});
};
Please help me with two functions:
How to get a field name ($(this)...)?
Which is the function used for enabling/disabling the fields? Using .setEnabled throws this error: Uncaught TypeError: $(...).setEnabled is not a function
Thank you