Information on input button

S

Stephen Noronha

Hi all,

I have an input button
<input type="button" id="Button2" name="Button2" value="More"
onclick="openPage()">
this input button onclick opens another page.

this "More" button is for additional information only (say I have extra
notes), and if there is none available then it should not appear.

How can i make this button visible or invisible?
Thanks,
Stephen
 
G

Guest

Set the display attribute of it's style to 'none'.

e.g. style="display:none" or button.style.display='none'
 
S

sreejith.ram

not sure if you are looking for help with syntax or logic..

to hide an html element add a style attribute style='display:none'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top