echo post title
So I'm using event tracking and trying to echo the post title in the event tracking by using
<?php the_title(); ?>
but while returning the title it also returns other info
for the post called 'write for shizazzle'
'Write for Shizazzle<input type='hidden' class='jr_fx_days_left_pid' value='-'>'
how can I just have 'write for shizazzle'
Full code below
<p><input type="submit" class="submit" name="apply_to_job" onClick="_gaq.push(['_trackEvent', 'Apply-test', 'Apply Form', '<?php the_title(); ?>' ])" value="<?php _e('Apply for Job', APP_TD); ?>" /></p>