i have developed my plugin and i got some strange problem. when i am including Jquery lib file with this code
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
it's working fine but when i am including Jquery Lib with this code it's not working
<script src="<?php echo plugins_url(); ?> /kp_contactus/js/jquery.js"> </script>
the path is proper i have checked and local Jquery lib version is jQuery v1.10.2
i am getting console error is...
Uncaught TypeError: Property '$' of object [object Object] is not a function ?page_id=19:108 (anonymous function)
can anybody suggest what's going wrong with it?
$('#contact').validate({
/* Making ajax request on successfull submition*/
submitHandler : function (form){
var name=$("#firstname").val();
var email=$("#useremail").val();
var contact=$("#mobile").val();
var type=$("#type").val();
var msg=$("#message").val();
$("#send").attr("disabled",true).html("Sending");
var data = { 'name': name, 'email' : email, 'contact' : contact, 'type' : type, 'msg' : msg };
$.ajax({
url : '<?php echo plugins_url();?>'+'/kp_contactus/kp_contact_config.php',
type : 'POST',
data : {contact:JSON.stringify(data)},
success : function (msg)
{
$("#info").fadeIn().html(msg).fadeOut(5000);
$("#send").attr("disabled",false).html("Send");
$("#contact").find("input").val("");
$("#contact").find("textarea").val("");
}
})
},