Can I call a JavaScript function in Wordpress like this?
<input type="button" value="" class="domain_submit" onclick="callGetDomain();">
Where should I put my JavaScript? at footer.php? or what would be the proper way to achieve something like this?
I put my script in footer.php, then I called the function like as I mentioned but no use?
wp_enqueue_scriptand you should use proper event listeners.