DDR DDR - 1 year ago 70
HTML Question

Finding anchor inside span element

I have this code in my html

<span id="u_0_10">You can also <a rel="my_Feed" href="#" ajaxify="send_notify?Qid=10&amp;part=99">feed</a>Send me this feed</span>

I want to know can I find that anchor with jQuery and fire its onclick in jQuery?

Answer Source

You can do it like this,

Live Demo

$('#u_0_10 a').click(function(){

$('#u_0_10 a').click();

You can learn more about jQuery selectors and click event here.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download