Opened 17 years ago
Closed 6 years ago
#55 closed bug (fixed)
this.set is not a function
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | |
Component: | ajax | Version: | |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description (last modified by )
When trying to use:
$("#parent_id").val(comment_id);
and
$("#reply_field dd").html(reply_name);
I get the following error in Firefox 1.5 or Safari on the Mac: this.set is not a function from line 541 of the jquery-svn.js rev. 134:
this[0][n] : this.set( n, h );
My jquery commands are called in the following function which is defined in the html as an onclick command:
function replyTo(comment_id, reply_name){
$("#commentbox").fadeIn("slow"); $("#parent_id").val(comment_id); $("#reply_field dd").html(reply_name);
}
Basic jquery, so quite surprised to see this error :/
Change History (4)
comment:1 Changed 17 years ago by
comment:4 Changed 6 years ago by
Cc: | " " removed |
---|---|
Component: | → ajax |
Description: | modified (diff) |
Keywords: | " " removed |
Priority: | → undecided |
Resolution: | → fixed |
Status: | reopened → closed |
Type: | → bug |
Note: See
TracTickets for help on using
tickets.
You should be able to fix that by changing line 541 of jquery-svn.js (and jquery/jquery.js in SVN) from:
this[0][n] : this.set( n, h );
to:
this[0][n] : this.attr( n, h );