title: i try to make a form in NodeJs for searching a user in mongodb by telephone number using query routing, i don't know why this not working?
body: <p>What is the wrong with this code? I got the exactly mobile number on the console but not on query routing on /search_user?mob ?</p>
  <pre><code>&lt;input type=&quot;tel&quot; name=&quot;message&quot; id=&quot;mobile_input&quot; value=&quot;&quot;&gt;
                    &lt;!--getting mobile no. from the input tag --&gt;
                    &lt;script type=&quot;text/javascript&quot; defer&gt;
                      e =&gt; {
                       e.preventDefault();
                       var mobInput = document.querySelector('#mobile_input');//get the input tag.
                       var moby = mobInput.value;//get mobile no. 
                       console.log(moby);//be sure from the variable mob 
                       mobInput.value='';//reset the input tag.
                       return moby;
                      }
                    &lt;/script&gt;
                     &lt;!-- query routing on /search_user?mob --&gt;                 
                   
                     &lt;a href=&quot;/search_user?mob=moby&quot; class=&quot;border-shadow&quot;&gt;Search&lt;/a&gt;
  </code></pre>