On May 4, 11:48 am, Milan Andric <[EMAIL PROTECTED]> wrote:
> Hello, I just started using MochiKit, kind of excited. I am trying to
> figure out how to make the values of an input text field change
> according to what is clicked or selected in a multi select box. What
> functions might be of use to me?
Cool, that was easy ...
function myLoadFunction(eventObj) {
MochiKit.Signal.connect(MochiKit.DOM.getElement('notes_tags'),
"onclick", myToggleTag);
}
function myToggleTag(eventObj) {
elementToApplyOn =
MochiKit.DOM.getElement('admin_notes');
elementToApplyOn.value += " "+eventObj.src().value;
}
MochiKit.Signal.connect(window, "onload", myLoadFunction);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" 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
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---