Skip to main content

Bug Tracker

Side navigation

#10672 closed bug (worksforme)

Opened November 04, 2011 03:35PM UTC

Closed November 04, 2011 04:40PM UTC

attr() no return value

Reported by: Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7
Keywords: Cc:
Blocked by: Blocking:

Dear jQuery Team!

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



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



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

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

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


//return: "Type: undefined & Name: undefined"

Thank: Barnabás Bartha

Attachments (0)
Change History (1)

Changed November 04, 2011 04:40PM UTC by dmethvin comment:1

resolution: → worksforme
status: newclosed

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