Is there any other way to do it than this? Could I somehow pass the
original element to the callback function?
$('.abc a').click(function() {
var tmp = $(this);
$.get('/abc', {id: '1'}, function(data) {
tmp.next().html(data);
});
return false;
});
Thanks for the help...I appreciate it.
On Jun 13, 6:20 pm, Jonathan Sharp [EMAIL PROTECTED] wrote:
(untested) You need to do:
$('div.a').mouseout(function(e) {
if (e.target == this) {
$(this).children('span.b').hide();
}
});
Cheers,
-js
On 6/13/07, wswilson [EMAIL
:
$('div.a').mouseout(function(e) {
if (e.target == this) {
$(this).children('span.b').hide();
}
});
Cheers,
-js
On 6/13/07, wswilson [EMAIL PROTECTED] wrote:
Here is my code:
html
head
script src=jquery.js type=text/javascript/script
script type=text/javascript
Here is my code:
html
head
script src=jquery.js type=text/javascript/script
script type=text/javascript
$(function() {
$('div.a span.b').hide();
$('div.a h1').mouseover(function() {$(this).next('span.b').show();});
$('div.a').mouseout(function()
4 matches
Mail list logo