Canders_12
asked on
Facebook & Javascript - Set textfield to hide by default
Hello all,
I can use the following code to hide a textfield as follows:
document.getElementById('a nswerSeque nce').setS tyle('disp lay', 'none');
I can then show it again using the code below:
document.getElementById('a nswerSeque nce').setS tyle('disp lay', '');
However, I want the textfield to be hidden when the page loads initially. Any ideas how this may be done?
Many thanks, in advance, Colin.
I can use the following code to hide a textfield as follows:
document.getElementById('a
I can then show it again using the code below:
document.getElementById('a
However, I want the textfield to be hidden when the page loads initially. Any ideas how this may be done?
Many thanks, in advance, Colin.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
sorry, but that thread does not seem in full? am i missing something? :(
do what gurvinder says (best) or create a javascript function which hides it and use <body onLoad to call it (not so great lol)
ASKER
That seemed too easy lol
I need to get myself on some course!!!
I need to get myself on some course!!!
Open in new window