Jump to content
Fórum Script Brasil
  • 0

Problemas com onkeyup e onclick


progboss
 Share

Question

Boa tarde senhores,
 
Estou com o seguinte problema.
 
Tenho esse codigo:

<textarea class="auto-grow-input" name="text" placeholder="<?php echo $lang['comment_textarea_label']; ?>" data-placeholder="<?php echo $lang['comment_textarea_label']; ?>" data-height="24" onkeyup="SK_registerComment(this.value,<?php echo $sk['input']['post']['id']; ?>,<?php echo $sk['input']['timeline']['id']; ?>,event);"><?php echo $lang['comment_textarea_label']; ?></textarea> 

Ele é usado para que quando a pessoa digitar algo na textarea e aperta enter o comentário e enviado. Eu quero que alem de aperta enter tenha um botão que quando clicar nele o comentario tambem seja enviado. Como posso fazer isso? 

Tentei assim, porem não deu certo:

<input class="icon-camera progress-icon cursor-hand" type="button" value ="Enviar" onClick="SK_registerComment(this.value,<?php echo $sk['input']['post']['id']; ?>,<?php echo $sk['input']['timeline']['id']; ?>,event);"/>	
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Forum Statistics

    • Total Topics
      149.6k
    • Total Posts
      646.2k
×
×
  • Create New...