user1422892
user1422892

Reputation: 225

Trigger a Double Click On Page load

I want to trigger a doubleclick on table's first Row(on Page Load) using Jquery.In My Program I'm using Following code:

$(document).ready(function() {

    setTimeout(function() {

    $("table tr td:first").trigger('dbclick');

    },10);

 });..

But it is Not Working...How can I do to?? please Give some Idea..

Upvotes: 1

Views: 2267

Answers (1)

viki
viki

Reputation: 1188

There is an typing error in your code

$("table tr td:first").trigger('dbclick');

its dblclick not dbclick. Replace your code as below.

$("table tr td:first").trigger('dblclick');

Upvotes: 3

Related Questions