hi i am trying to retrieve value of textbox using ajax on to another form without refresh but it is not working
Here is my code
<script>
        function sendsms() {
            var exam = new XMLHttpRequest();
            exam.onreadystatechange = function() {
                if (exam.readyState == 4) {
                    document.getElementById("RightPaneContainerDiv").innerHTML = exam.responseText;
                }
            }
            exam.open("GET", "freetrailsend.php?message=" + document.getElementById("cwc").value,"service=" + document.getElementById("dropdown").value, true);
            exam.send(null)
            return false;
        }
    </script>
where i am wrong in this code
Any help will be appreciated
 
    