I am trying to install a simple text tip jquery called qtip from the following site: http://craigsworks.com/projects/qtip2/, with no success. It is simply not working, I am not getting any errors. I have been trying to troubleshoot this for over an hour now.
My code below there is a blank div of class .something
I am simply trying to display any text using a qtip
when the box is hovered to confirm that it is working.
Javascript
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="http://jzaefferer.github.com/jquery-validation/jquery.validate.js"></script>
<script type="text/javascript" src="jquery.qtip.min.js"></script>
<script>
$(document).ready(function(){
$(".myform").validate({
highlight: function(element, errorClass, validClass) {
$(element).css('border', '1px solid red');
},
unhighlight: function(element, errorClass, validClass) {
$(element).css('border', '1px solid #ddd');
},
messages: {
first: "Please specify your name",
}
});
$('.something').qtip('hello');
});
</script>
Markup
<form class="myForm" method="post" action="action.php">
First <input type="text" name="first" class="required"/><br/>
Last <input type="text" name="last" /><br/>
Phone <input type="text" name="phone" class="required"/><br/>
<div class="something" style="border:1px solid red; height:150px; width:300px;"></div>
<input type="submit">
</form>
I appreciate any suggestions on what might be the problem.
Many thanks in advance!