#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: |
Description
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)
Change History (3)
Changed 14 years ago by
Attachment: | index.html added |
---|
comment:1 Changed 14 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
I think you mean .val().
comment:2 Changed 14 years ago by
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.
working version - replace .attr('value'... with .value(