Skip to content

Instantly share code, notes, and snippets.

@chingovan
Created May 16, 2016 14:45
Show Gist options
  • Save chingovan/29d6d01374cf94ed03c5e2347e7999b8 to your computer and use it in GitHub Desktop.
Save chingovan/29d6d01374cf94ed03c5e2347e7999b8 to your computer and use it in GitHub Desktop.
<%@include file="/html/auinode/init.jsp"%>
<aui:row>
<aui:row>
<span id="spanId"></span>
</aui:row>
<aui:row>
<input type="text" id="textId" value=""/>
</aui:row>
</aui:row>
<aui:script>
AUI().use('aui-node', function(A){
var text = A.one('#textId');
text.on(
'change', function(){
var spanNode = A.one('#spanId');
var value = text.val();
spanNode.text(value);
}
);
});
</aui:script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment