I have this code
function this_is_my_shortcode(){ wp_register_script('per-pas-belanja-online', plugins_url('js/per-pas-belanja-online.js', __FILE__), array('jquery'), '1.0.0'); wp_enqueue_script('per-pas-belanja-online'); return '<div id="poppedout">Blah</div>'; } add_shortcode('bubba', 'this_is_my_shortcode');
The div is appear on the page, but the script is not. What mistake i have done ?