Bug Tracker

Opened 10 years ago

Closed 10 years ago

#13536 closed bug (notabug)

Problem with .prop()

Reported by: [email protected] Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:

Description

Hi.

We have a problem with the .prop() method and are sure this is a bug. The following Example demonstrates that case:

http://jsfiddle.net/crgb7/2/

What is the difference if it is a div or input tag? Anyway 'name' isnt a valid DOM Property, so im sure in both cases it should be possible to retrieve the value of 'name'

Change History (1)

comment:1 Changed 10 years ago by dmethvin

Resolution: notabug
Status: newclosed

divs don't have a name property and inputs do. If you want the string specified in the attribute then use .attr(). Followups to the forum or StackOverflow please.

Note: See TracTickets for help on using tickets.