There’s a page that I’m trying to trigger a jQuery event for when a certain span’s value changes to 1.
There’s a countdown timer on the page. When the timer reaches 1, I’d like to trigger a click event.
The difficulty I’m having is getting a script that i’m running via Jash to know when the timer changes to 1.
The value of the timer can read with: $('#tCounter_474754 .bid_time_highlight').text();
But how can I get jQuery to trigger the click when this timer reaches 1?
first by setting a
setIntervalcheck the text of span periodicallyand the second solution is to change an attribute of element like class name and set a handler earlier to handle that.