cancel
Showing results for 
Search instead for 
Did you mean: 

How to Disable all InputFields (aka TextFields)?

former_member1287623
Participant
0 Kudos

Hi,

I'm trying to disable all inputfields on the screen.

But I want to do it the dynamic way - not the hard coded way.

Currently I am stuck - I tried a lot of stuff already but nothing worked.

This is the actual approach I am using in the controller of the main page - in the debugger I can see the objects but nothing happens when I change the Objects:

$("input").each(function( index ) {  
  console.log( index + ": " + $(this).defaultValue );    
  $(this).readOnly = true;  
  });

Any help is appreciated.

Thanks & regards

Accepted Solutions (1)

Accepted Solutions (1)

former_member1287623
Participant
0 Kudos

Solved... Problem was using "$(this)" instead of "this"...

Answers (0)