Take a look at this example:
http://bjorsq.net/selector.html
on 18/05/2009 11:07 ocptime said::
Hi,
It's not working :).
How can i select using the jquery ul li selector?
Thanks
ocptime
On 18 May, 13:39, Peter Edwards <[email protected]> wrote:
$('#delete_item a').click(function(){
return (confirm('Are you sure?'));
});
This will only work if there is one item to delete on the page because
it uses an ID selector.
If you have multiple items, use a class selector instead.
on 18/05/2009 08:43 ocptime said::
Hi everyone,
How can I use the jQuery css selector on click function when the user
clicks on the delete <img>
or the delete < a href> tag?
<code>
<div id="ribbon">
<span class="right">
<ul>
<li>
<a href="/items/makeActive/444"><img src="http://example.com/images/
checked.gif"/></a>
<a href="/items/makeActive/444">Make Active</a>
</li>
<li id="delete_item">
<a href="/items/delete/444"><img src="http://example.com/images/
unchecked.gif" /></a>
<a href="/items/delete/444">Delete</a>
</li>
<li> </li>
</ul>
</span>
</div>
</code>
Thanks everyone,
ocptime