how to add javascript in wordpress code example
Example: wordpress include javascript file
function jquery_tabify() {
wp_enqueue_script(
'jquery-tabify',
'http://site.com/jquery.tabify.js',
array( 'jquery' )
);
}
add_action( 'wp_enqueue_scripts', 'jquery_tabify' );