oops ... in my example i used event.target.id ... it's event.target

like so ...

$(document).ready(function() {
$('body').click(function(event) {

if ($(event.target).is('.touchRfq')) {

var touchco = $(event.target).attr("name");

alert(touchco);

 });
 });
 });


On Jan 16, 12:50 pm, skatta <[EMAIL PROTECTED]> wrote:
> in this issue First off ... i'm using ajax to pull elements into the
> DOM. So my code uses this (there are probably better ways to do
> this) ...
>
> $(document).ready(function() {
>
>    $('body').click(function(event) {
>
> if ($(event.target).is('.touchRfq')) {
>
> var touchco = $(event.target.id).attr("name");
>
> alert(touchco);
>
>    });
>  });
>
> why isn't this grabbing the name on this? in IE7 and FF2 it's fine ...
> but IE 6 fails to grab the "name" attribute.
>
> any thoughts?

Reply via email to