title: Alternative for document in document.getElementById('ID')
body: <p>I am completely a beginner in java script. As i know, by using this line of code:</p>
  
  <pre><code>document.getElementById('ID').value
  </code></pre>
  
  <p>It looks in the entire PHP file to find the value of that id (it's a text input). Is there any alternative for the documents on that line of code that let me to search only in a class?</p>
  
  <p>for example i have a class called number, so :</p>
  
  <pre><code>this.block = $("#number");
  </code></pre>
  
  <p>can i use something like that:</p>
  
  <pre><code>this.block.getElementById('ID').value;
  </code></pre>
  
  <p>Or there is any another line of code that give me the value of a text input? Thanks a lot</p>