Created
May 16, 2016 14:45
-
-
Save chingovan/29d6d01374cf94ed03c5e2347e7999b8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@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