I have two differnt jquery scripts that both work on their own, but when I try to combine then on same page, they break. I notice they call different versions of jquery, but if I try to use one or the other, it breaks one of the functions.. Anyone help me know why?
First script:
<head>
<link rel="stylesheet"href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css"/>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script src="ajax.js"language="javascript"type="text/javascript"></script>
<script>
$(function() {
var availableTags = [
"Abel Law Offices",
"Abigail Rivamonte, Attorney at Law",
"Abrams & Heyn"
];
$( "#tags").autocomplete({
source: availableTags
});
});
</script>
</head>
<body>
<input type="text" id="tags" name="tags" >
</body>
</html>
Second script:
<script src="http://code.jquery.com/jquery-1.4.2.min.js" type="text/javascript"></script>
<script>
$(document).ready(function () {
$("#checkbox_1").change(function () {
$("#tags").attr("disabled", $(this).attr("checked"));
});
});
</script>
What is the issue here? Thank you in advance.
What I want is a suggested field box, and a check box that disables the suggested field box when clicked. Ive done both on their own before, so I thought I could simply use both... But alas.