$("#testing").change(function()
        {  
         var id = $(this).val();
            $.ajax({
            url:'Servlet',
            type:"get",
            dataType: "json",
            async: false,
             cache: false,
        processData: false,  
            data: id,
            sucess: function(result) {

            alert(result);



        },  
            error: function(req, err)
            { 
            console.log('my message' + err); 
            }
            });

            return false;
        });

What does the error message say? The value you filled in for "url" seems a bit odd to me - maybe that's a file that cannot be loaded?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.