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

-- 
You received this message because you are subscribed to the Google
Groups "Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
https://groups.google.com/forum/#!forum/firebug

Reply via email to