Jump to content

Adicionar title em um selectBox


glicose

Recommended Posts

Olá, eu queria saber como funciona pra colocar title em um selectBox

Eu consigo criar as options nessa linha abaixo (dentro de um for):

campo_select.options = new Option( string[0], string[1] );

Como eu faria pra colocar um title, pra quando passar o mouse aparecer o titulo

Seria algo do tipo: campo_select.title= string[2];

?

Grato

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.