[eluser]Thorpe Obazee[/eluser]
The only difference you're going to do is change the event listener from your_form.submit() to your_button_or_whatever.click().
Code:
<script type="text/javascript">
$(document).ready(function() {
$('#registration_form_submit').click(function(){
$.post("<?php echo site_url(current_url());?>", {
username: $('#username').val(),
first_name: $('#first_name').val(),
last_name: $('#last_name').val(),
password: $('#password').val(),
passconf: $('#passconf').val(),
email: $('#email').val(),
},
function(data){
alert(data);
}
);
return false;
});
});
</script>