<form method="post" action="" onsubmit="ajax_follow_settings_update(); return false;">
<div style="float: left; width: 48px; border: 1px solid grey; text-align: center; margin: 0px 7px 3px 0px;">
<a href="https://twitter.com/intent/user?user_id={{ user.id_str }}" target="_blank">
<img src="{{ user.profile_image_url }}" width="48" height="48" title="Screen Name: {{ user.screen_name }}
Full Name: {{ user.name }}
Last Tweet: {{ user.status.text }}
" />
</a><br />
<input type="checkbox" class="dcheck" name="follow_id[]" value="{{ user.id_str }}" />
</div>
<br>
<input type="submit" value="Follow Selected Users" class="submit_button_style" onclick="ajax_follow_settings_update();" /></div>
<br><br><br><div id="update_div"></div>
JS
function ajax_tweet_settings_update() {
var form_data = $('input:checkbox:checked').serialize();
$("#update_div").html(ajax_load).load('startfollow.php',form_data);
}
on submission it loads the startfollow page instead of updating the div.
any ideas?