I reckon i must be losing my marbles or i'm just being lazy (probably the latter).
I've got a product search form with a text box (for the search string) and a "Find" button to perform the search when clicked.
The user types a string then clicks enter. The focus moves to the find button and it's on got focus property clicks the button to perform the search.
Great so far BUT...
I want to be able to click the same find button with a mouse too. When this happens the search runs twice because getting the focus runs it once and clicking the button runs it again!
Before i go making any changes does anyone have a super slick way of getting round this?
Vince
I've got a product search form with a text box (for the search string) and a "Find" button to perform the search when clicked.
The user types a string then clicks enter. The focus moves to the find button and it's on got focus property clicks the button to perform the search.
Great so far BUT...
I want to be able to click the same find button with a mouse too. When this happens the search runs twice because getting the focus runs it once and clicking the button runs it again!
Before i go making any changes does anyone have a super slick way of getting round this?
Vince