Ajax and href

My ajax code is:

$(document).on('change','.blife_rang',function(){
	
   var url = "ajax_search.php";
   $.ajax({
     type: "POST",
     url: url,
     data: $("#search_form").serialize(),
     success: function(data)
     {      
			
        $('.allproductinner').html(data);
	//Here I also want after changing the content of allproductinner div the control will also move to that div.Here I need to use href tag but how?
     }               
   });
  return false;
});

I tried windw.open() function but of no use :frowning:
So,How I can do this.

Looks reasonable. A couple of questions.

  • What type of elements have the class .blife_rang and are they added dynamically?
  • When you add console.log(data) to your success callback, what is logged to the console?
  • Why do you need the return false?
  • Are you sure the change event is firing? (add a console.log)
  • Did you look at the network tab in your browser tools?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.