title: How to call js jQuery from functions.php in Wordpress
body: <p>I have this code on Wordpress post:</p>
  
  <pre><code>&lt;input type=text id="testni" value="la"&gt;
  </code></pre>
  
  <p>and this code in functions.php:</p>
  
  
  
  <pre><code>&lt;script type="text/javascript"&gt;
            $function(){
          $("#testni").attr("value", "petra");
  
  
            }
          &lt;/script&gt;
  </code></pre>
  
  <p>This does not work. I guess i have to add some php code?</p>
  
  <p>How to call JS from php?</p>