I tried the following code in the Domplate runner.
http://softwareishard.com/domplate/runner/
var template = domplate(
{
listbox:
SELECT({onchange:"$listSelect"},
OPTION({VALUE:"equal"},
"equal"
),
OPTION({VALUE:"like"},
"like"
)
),
listSelect: function(event)
{
var check = event.target;
if (check.value=="like")
alert("like");
else
alert("equal");
}
});
// Template execution.
template.listbox.replace({}, parentNode, template);
and when changing the value of the listbox I am seeing an alert
with "equal" or "like" labels.
So, it seems to be working, no?
Honza