Jump to content
Sign in to follow this  
[LPGA]volumes

text box disable

Recommended Posts

[LPGA]volumes

hey,

alguem me sabe dizer meke k eu meto uma textbox disable mas com um texto lá escrito ? :s

Cumps.

Share this post


Link to post
Share on other sites
ouvi_dizer

text box

<input type="text" name="AAAA" value="texto" disabled>

text area

<textarea readonly>
texto
</textarea>

edit: corrigido

Share this post


Link to post
Share on other sites
ouvi_dizer

radio butons

<input name="aaaa" type="radio" value="0" checked disabled>
<input name="aaaa" type="radio" value="1" disabled>
.
.
.
<input name="aaaa" type="radio" value="n" disabled>

nota: todos os radio butons que tenham o mesmo nome pertencem a um grupo e são tratados como sendo um unico objecto, que tem o valor do RB checked ou (caso nenhum esteja checked) o primeiro valor definido (neste exemplo seria o 0).

check box

<input type="checkbox" name="bbbb" value="xpto" checked disabled>
<input type="checkbox" name="cccc" value="xyz" disabled>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.