Skip to main content

Bug Tracker

Side navigation

#4885 closed bug (invalid)

Opened July 11, 2009 02:00PM UTC

Closed July 11, 2009 02:04PM UTC

Last modified July 12, 2009 07:21PM UTC

.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 July 11, 2009 02:00PM UTC.

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

Change History (2)

Changed July 11, 2009 02:04PM UTC by john comment:1

resolution: → invalid
status: newclosed

I think you mean .val().

Changed July 12, 2009 07:21PM UTC by sixtymonkey comment:2

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