I have issue with specifying the Ajax jQuery url path. I have one function contains all Html markup codes, php sned mail codes and Ajax jQuery code as follow
How i can specify url
property in ajax code?
Info: i use wordpress theme and this function within my plugin directory
<?php
function bsncontact() {
//All php codes here
?>
<form id="ajax-contact" class="navbar-form" action="" method="POST">
<!-- other html markup codes -->
</form>
<script type="text/javascript">
jQuery(function(){
jQuery.ajax({
type: 'POST',
url: '',
data: "name=" + name + "&email=" + email + "&subject=" + subject + "&message=" + message,
success: function(text) {
}
});
});
</script>
<?php
}
?>