Questions tagged [click]

In user interfaces, click refers to the depressing of a mouse button or similar input device.

In user interfaces, click refers to the depressing of a mouse button or similar input device. Most user interface languages provide the facility to track click . Such an event is usually dispatched after the user has pressed, then released the mouse button.

9400 questions
87
votes
10 answers

Custom UITableViewCell selection style?

When I click on my UITableViewCell, the background part (the areas that my background image doesn't cover) turns blue when I click on the cell. Also, all of the UILabels on the cell turn to white when it is clicked which is what I want. However what…
SimplyKiwi
  • 12,376
  • 22
  • 105
  • 191
83
votes
11 answers

PhantomJS; click an element

How do I click an element in PhantomJS? page.evaluate(function() { document.getElementById('idButtonSpan').click(); }); This gives me an error "undefined is not a function..." If I instead return…
user984003
  • 28,050
  • 64
  • 189
  • 285
80
votes
4 answers

jquery click doesn't work on ajax generated content

I am using $(".button").on("click", function(){ }); to click to a button which is on a container but then an ajax call is done and the content gets updated with new stuff and then when i try to click .button it wont work... nothing will get…
stergosz
  • 5,754
  • 13
  • 62
  • 133
79
votes
6 answers

Use jQuery click to handle anchor onClick()

I have a set of dynamically generated anchor tags in a for loop as follows:
'; Once this code is executed the html output for one…
crazy_coder
  • 1,039
  • 2
  • 8
  • 18
77
votes
6 answers

jQuery bind click *ANYTHING* but *ELEMENT*

Say there are some elements floating around, and I'm trying to do some when I click ANYTHING(divs, body, whatever...) but the one specified (e.g. div#special). I'm wondering if there's a better way to achieve this besides the following method I can…
railOne
  • 955
  • 2
  • 7
  • 6
71
votes
11 answers

CSS Animation onClick

How can I get a CSS Animation to play with a JavaScript onClick? I currently have: .classname { -webkit-animation-name: cssAnimation; -webkit-animation-duration:3s; -webkit-animation-iteration-count: 1; -webkit-animation-timing-function:…
tekknolagi
  • 10,663
  • 24
  • 75
  • 119
70
votes
3 answers

jQuery click events not working in iOS

Second update: Looks like one of my functions (resetFigures) was preventing the event handler, so moving that to the end of the bind function sorted it out. Update: I realized after some basic testing that the click events were registering, it's…
Bobe
  • 2,040
  • 8
  • 29
  • 49
68
votes
4 answers

Add parameter to Button click event

I have a wpf button like this: And I want to pass {Binding Code} passed as parameter to the button1_click handler. How do I go about…
Boris Callens
  • 90,659
  • 85
  • 207
  • 305
65
votes
8 answers

Android: Disable highlighting in GridView

How can I turn off the orange highlight when clicking an item in a GridView? I haven't been able to find a solution in the documentation or through testing.
Impression
  • 781
  • 2
  • 6
  • 7
62
votes
11 answers

Javafx 2 click and double click

I would like to know if it was possible to detect the double-click in JavaFX 2 ? and how ? I would like to make different event between a click and a double click. Thanks
Delkaspo
  • 768
  • 1
  • 6
  • 10
61
votes
9 answers

Using jQuery to programmatically click an link

I know this question has been asked before, but after a search on the web I can't seem to find a straight forward answer. the HTML the jQuery (Both of these do not work) $('#myAnchor').click(); or…
Stephen Croft
  • 801
  • 1
  • 8
  • 12
59
votes
2 answers

How can I simulate a mouse click at a certain position on the screen?

What I want to do is to manipulate the mouse. It will be a simple macro for my own purposes. So it will move my mouse to certain position on the screen and click like I am clicking with certain interval.
Furkan Gözükara
  • 22,964
  • 77
  • 205
  • 342
55
votes
5 answers

jQuery .on() method doesn't see new elements

I'm getting a JSON element and building a list from its items like this: getTitles: function(data) { data = data || {}; var list = []; $.getJSON( '/titles', data, function(data) { $.each(data.data,…
cnkt
  • 2,943
  • 5
  • 30
  • 43
55
votes
4 answers

Python selenium: wait until element is clickable - not working

I will test a web-app. there is a button available in my table to select all entries. I've tried: driver.wait.until(ExpectedCondition.element_to_be_clickable((By.XPATH, "myXpath"))).click() selenium clicks on the button, but nothing happens. (also…
Storm
  • 728
  • 2
  • 7
  • 17
55
votes
6 answers

JavaScript touchend versus click dilemma

I am working on some javascript UI, and using a lot of touch events like 'touchend' for improved response on touch devices. However, there are some logical issues which are bugging me ... I have seen that many developers mingle 'touchend' and…
suncat100
  • 2,118
  • 1
  • 17
  • 22