you can call action controller with parameter on click event
$('#loginSubmit').click(function(){
var Username= take the value for text fields
var Password =take the value for text fields
var url = "login";
var FormD = '';
$("body").append(FormD); $("#frmSubmit").submit();
});