$('#fillUpdateOwnerButton').on('click', function () {
                var email = $('#eMailUpdateOwner').val();
                console.log(email);
                $.ajax({
                    type: 'POST',
                    url: "updateBusOwnerDetailsServlet",
                    data: {"emailForSearch": email},
                    success: function (msg) {
                        alert(msg);
                    }
above is the code between the <Script> tag, that console.log() also prints nothing and below I mention how I try to get data by Servlet, but this is not working, it prints null,
System.out.println(request.getParameter("emailForSearch"));
 
     
     
    