on 01-03-2015 4:46 PM
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
Solved... Problem was using "$(this)" instead of "this"...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.