I create a text box on the form:
var QueryTextView = Mn.ItemView.extend({ template: $(textQueryTemplate)[0].outerHTML, }); this.querytextView = new QueryTextView(); this.getRegion('selectFieldValue').show(this.querytextView); // отображение текстового поля template code:
<script type="text/javascript"> <input type="text" class="select-field-value" value="Введите значение"/> </script> During operation, the words "Enter value" are replaced with the desired word, which I need to receive and process. I'm trying to do it like this:
var value = this.querytextView.value; But this.querytextView no value property. Judging by the log, the template code is stored in the $ el -> 0 -> innerHTML property. How can I pull out the value of this.querytextView ?