Ticket #55 (closed bug: invalid)
this.set is not a function
| Reported by: | subblue@… | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | |
| Component: | ajax | Version: | |
| Keywords: | "" | Cc: | "" |
| Blocking: | Blocked by: |
Description
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

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 );