Link to home
Start Free TrialLog in
Avatar of altariamx2003
altariamx2003Flag for Mexico

asked on

how do i update my ajax code to the latest version of jquery min?

Hi

I hope you can help me with this issue:

I have this code:
        <script type="text/javascript">
		
$(function() {
$(".busqueda").click(function(){

                    $.ajax
                    ({
                        type: "POST",
                        url: "ajax.php",
						data: 'page=1',
                        success: function(msg)
                        {
                            $("#dos").ajaxComplete(function(event, request, settings)
                            {
                                $("#dos").html(msg);
                            });
                        }
                    });
});
});		
        </script>

Open in new window


it works without problems when I use this version of jquery min: <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>

But It doesnt works when Im trying to use the latest version of jquery min (<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>)

I hope you can tell me what part of my code I need to change to make it compatible to the latest version of jquery min.

Best regards
SOLUTION
Avatar of Gary
Gary
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of altariamx2003

ASKER

nop, busqueda is a static element
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I foun the solution by myself