Use coupon code PRO30 to take 30% OFF on Pie Register Professional! Hurry, the offer expires on May 31st.

Forgot password form with ajax

Viewing 1 post (of 1 total)
  • Author
  • #10003159
    AvatarTwix Chopra

    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)
  • The forum ‘Pie-Register 2.0 Support’ is closed to new topics and replies.