Jump to content

[Resolvido] input com legenda dentro


Recommended Posts


necessito de ajuda em, colocar um texto dentro de um input tipo text e ao clicar o texto desaparecer.

idêntico aqui ao sistema de pesquisa no pap.

o texto é adicionado em algum atributo do input e ele faz tudo?

ou é no value e depois usar javascript



Edited by acao
Link to comment
Share on other sites

tens sempre a opção oldSchool crossbrowser ... js

<input type="text" value="Search" onfocus="if (this.value == 'Search') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search';}">

+info http://webdesignerwall.com/tutorials/cross-browser-html5-placeholder-text

  • Vote 2

B2R » Beat2Revolution v3.0b | Regista e divulga-nos

Link to comment
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

  • 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.