I'm developing a chrome extension for twitter.com users. I need to trigger click event for the "new tweet" link using jQuery (javascript) but I couldn't can anyone help?
$("#new-tweet").trigger('click'); // not working :(
I'm developing a chrome extension for twitter.com users. I need to trigger click event for the "new tweet" link using jQuery (javascript) but I couldn't can anyone help?
$("#new-tweet").trigger('click'); // not working :(
Works for me. Are you sure the document is ready? Eg, when are you trying to run this code?