or
$
this
.children().each(
function
(i) {
var
$item = $(
"<li><label>"
+ $(
this
).val() +
" <input type=\""
+ (base.multiple ?
"checkbox"
:
"radio"
) +
"\" "
+ (
this
.selected ?
"checked=\"checked\""
:
""
) +
" /></label></li>"
);
listview.prepend($item);
var
that =
this
;
$item.on(
"click"
,
function
() {
console.log(
"test"
);
that.selected =
true
;
$
this
.ButtonCombobox(
"setSelection"
);
})
});