View Full Version : Getting value from Sencha text input created in HTML

22 Jul 2011, 6:08 AM
I can create a Sencha text input in HTML like this: (copied from their Kitchen Sink)

<div id="ext-comp-1093" class="x-field x-field-text x-field-required x-label-align-left">
<div class="x-form-label" id="ext-gen1243" style="width: 35%; ">
<div class="x-form-field-container">
<input id="ext-gen1240" type="text" name="name" class="x-input-text" placeholder="Tom Roy" autocapitalize="on">

Is there an elegant way in JavaScript to get the value of the input field using Sencha? Is there a way to use .getValue? (I'm using Touch, if it makes any difference.)