109
rated 0 times
[
111]
[
2]
/ answers: 1 / hits: 26596
/ 13 Years ago, sun, february 5, 2012, 12:00:00
...
$.fn.annotateEdit = function(image, note) {
if (note) {
this.note = note;
} else {
var newNote = new Object();
newNote.id = new;
this.note = newNote;
}
}
...
var mynote = this.note;
form.find(':radio').change(function() {
var vacancy = $(this).attr('value');
mynote.vacancy = vacancy;
});
...
Is it possible to access this.note from the change() handler without defining mynote?
More From » jquery