Jump to content
davidpereira

icon com funcao submit

Recommended Posts

davidpereira

Boa tarde.

Como coloco um Icon com funcao "onclick " ele faz o submit?

Obrigado a todos e Bom Ano.

Share this post


Link to post
Share on other sites
HappyHippyHippo

registas uma função ao evento onclick (javascript) que ao ser executada, chama o método submit do formulário em questão


IRC : sim, é algo que ainda existe >> #p@p

Share this post


Link to post
Share on other sites
zebeto

Boas. Podes fazer isto.

Html:

<div onclick="submit()" class="o-meu-icone"></div>

Css:

.o-meu-icone {
background-image:url("imagens/icon.png");
}

Edited by zebeto

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

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