Q: Select an element by title in jQuery Is it possible to activate a link calling the title as the element reference point:
<a href="#" title="dynamic title">Click me</a>

Im building a simple widget that will need to activate a link on another site. The link has no id or name tags.
I should also mention by activate I mean trigger the link. 
The script loads an iframe and after loading I want it to trigger a set link on that page. In actual fact the code will need to trigger a series of links on the page
<script type="text/javascript">
<!--

    // autoclick
    $(document).ready(function(){
        document.frames["iframe"].$(".[title='title']").trigger('click');
        alert('bob');
    });
//-->
</script>

<iframe src="http://page.com" width="100%" height="50%" name="iframe" id="iframe"></iframe>


A: You can use the attribute-equals selector [name="value"]:
$('a[name="dynamic title"]').click(function() {
    // event handling code here
});


A: $('[title="dynamic title"]').click(function(){});
You could also use wildcard selectors on the attribute values like so:
$('[title*="some fragment"]').click(function(){});

A: $('a[title="dynamic title"]').click(function(){...});


A: $( 'a[title="dynamic title"]' ).click( function () {
    // ...
});


A: Not sure if this will help you in your mission, but you can use jQuery's attribute selector to get a an element with a particular title:
$('a[title="dynamic title"]');


A: You can't trigger a link like that.
Calling $('a[title="dynamic title"]').click() will fire anything bound to the click event of the link, but won't actually cause the browser to follow the link.
