Home How to call js jQuery from functions.php in Wordpress
Reply: 0

How to call js jQuery from functions.php in Wordpress

user436
1#
user436 Published in July 19, 2018, 9:43 am

I have this code on Wordpress post:

<input type=text id="testni" value="la">

and this code in functions.php:

<script type="text/javascript">
          $function(){
        $("#testni").attr("value", "petra");


          }
        </script>

This does not work. I guess i have to add some php code?

How to call JS from php?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.330063 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO