submit using enter

18 11 2007

Hari ni saya ingin kongsi penggunaan enter dengan keyboard untuk submit form atau action dengan menggunakan enter keyboard.

ni kod nya sebagai contoh

<textarea onkeypress="if (event.keyCode == 13) { this.form.submit();}">

Apabila anda ingin memanggil fungsi ini kodnya(sy menggunakan kaedah ini utk memanggil fungsi dlm penggunaan xajax)

<input type="text" cols=40 class="textbox" name="ic" id="ic" onkeypress="if (event.keyCode == 13) { onclick=find();}"

harap membantu 🙂


Actions

Information

2 responses

22 05 2009
Д

Впервые слышу, я в шоке

24 09 2010
Piedavele

calories for adult cats Yes, the internet – is vast, even if it is possible to find Interesting Login or register, but you should add more articles class) I ponra) especially! share: but we have to work all pouvolnyali, and what to do now? Really? amazing. Indeed … super creative! I read a similar article on this subject, but you have quite a different opinion, thanks, it was interesting to compare Why have a blog such attendance is low … the way to put things in your blog or deterioration, will help remove

Leave a comment