Forgot password form with ajax

Home Forums Pie-Register 2.0 Support Forgot password form with ajax

This topic contains 0 replies, has 1 voice, and was last updated by  Twix Chopra 3 years, 6 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #3159

    Twix Chopra
    Participant

    Is there anyway to make forgot password form with ajax ?

    Currently page is getting refreshed after submitting that form but I don;t want that.So is there any way to achieve it ?

    I tried something like this without any success.

    	var $forget_password_form = $("#piereg_lostpasswordform");
    	
    	//New function created 
    	$("#piereg_lostpasswordform #wp-submit").click(function(event){
    	
    		$.ajax( {
    			type: "POST",
    			url: $forget_password_form.attr( 'action' ),
    			data: $forget_password_form.serialize(),
    			success: function( response ) {
    				console.log( response );
    			}
    		} );
    		
    	});
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.