Bug Tracker

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#4885 closed bug (invalid)

.value('hello') fails when .attr('value', 'hello') works...

Reported by: sixtymonkey Owned by:
Priority: major Milestone: 1.4
Component: core Version: 1.3.2
Keywords: attr value Cc:
Blocked by: Blocking:


When I use .value (after apending to the DOM) then I get the error: $("<input />").attr("type", "hidden").attr("name", "blogid").appendTo(li).value is not a function. When I use .attr then the script works. I have attached a working version.

Attachments (1)

index.html (3.1 KB) - added by sixtymonkey 14 years ago.
working version - replace .attr('value'... with .value(

Download all attachments as: .zip

Change History (3)

Changed 14 years ago by sixtymonkey

Attachment: index.html added

working version - replace .attr('value'... with .value(

comment:1 Changed 14 years ago by john

Resolution: invalid
Status: newclosed

I think you mean .val().

comment:2 Changed 14 years ago by sixtymonkey

How very right you are! Serves me right for having my head so deep in moo code. :)

Note: See TracTickets for help on using tickets.