title: jquery Modal dialog Get value of input type text by id
body: <p>I have this code in my php file</p>
  
  <pre><code>$text .= '      &lt;input type="text" name="prefix" value="'.htmlspecialchars($e1['prefix']).'" maxlength="20" class="inputListForm" id="prefix"/&gt;';
  </code></pre>
  
  <p>i want to get the value of the input type text</p>
  
  <p>and this is my code :</p>
  
  <pre><code>var prefix = $('#prefix').get(0).value;
  console.log(prefix);
  </code></pre>
  
  <p>i also try <code>document.getElementById("prefix");</code></p>
  
  <p>but still no result</p>