Submit form with our page refresh in Servlet
- by John
<script type="text/javascript">
$(document).ready(function()
{
$('.ibutton').click(function()
{
var ajaxdata=$("#country").val();
var value = "country="+ajaxdata;
$.ajax({
url: "saveIt",
type: "POST",
data: value,
cache: false,
success: function(data){
alert("load success");
}
});return false;
});
});
</script>
Friends, i followed every thing but its not working, upon submit, am unable to send the servlet request, saveIt is my url pattern,pls help me.