Bug Tracker

Modify

Ticket #10672 (closed bug: worksforme)

Opened 19 months ago

Last modified 19 months ago

attr() no return value

Reported by: bartha.brw@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7
Keywords: Cc:
Blocking: Blocked by:

Description

Dear jQuery Team!

I found a bug: attr() no return value.

Test:

html <input type="button" name="test_button">

jQuery $("input").click(function(){

var type = $(this).attr('type');

name = $(this).attr('name');

alert("Type: "+type+" & Name: "+name);

});

return: "Type: undefined & Name: undefined"

Thank: Barnabás Bartha bartha.brw@…

Change History

comment:1 Changed 19 months ago by dmethvin

  • Status changed from new to closed
  • Resolution set to worksforme

Whoops, i deleted my earlier comment, misread the example.

 http://jsfiddle.net/dmethvin/4qTmX/

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.