File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes onclick function is not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "onclick function is not working" Watch "onclick function is not working" New topic

onclick function is not working

suresh pulapally
Ranch Hand

Joined: Mar 15, 2005
Posts: 47

I have written onClick() function in select tag this function is working when i double click,and its its not working for single click.please anybody suggest me what to do

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
For a select tag you should be using onfocus, onblur, onchange. Why are you using onclick?

I agree. Here's the link:
subject: onclick function is not working
jQuery in Action, 3rd edition