After trying to find a way of having multiple selected buttons for my site, i found that a jquery 1.8 file did exactly that. Being new to programming and learning python and django, i have not yet delved into the world of javascript. But what ive garnered so far is that you can incorporate these jquery files in your html, without having to do anything on the server side. After all, in this case i just simply want my buttons to do something.
Now the jquery script works when i double click on the html file, but when im running the html file through my app it dosent. It thus makes me believe that when running my app i have to do something on the server side to make it work.
Does this make sense?
The Html code in question, i havent retouched anything in the views file.
<link rel="stylesheet" href="/home/jamie//Downloads/jquery-ui-1.8.10/themes/base/jquery.ui.all.css">
<script src="/home/jamie/Downloads/jquery-ui-1.8.10/jquery-1.4.4.js"></script>
<script src="/home/jamie/Downloads/jquery-ui-1.8.10/ui/jquery.ui.core.js"></script>
<script src="/home/jamie/Downloads/jquery-ui-1.8.10/ui/jquery.ui.widget.js"> </script>
<script src="/home/jamie/Downloads/jquery-ui-1.8.10/ui/jquery.ui.button.js"></script>
<link rel="stylesheet" href="/home/jamie/Downloads/jquery-ui-1.8.10/demos/demos.css">
<script>
$(function() {
$( "#check" ).button();
$( "#format" ).buttonset();
});
</script>
<style type="text/css">
table.ranking {position: absolute; top: 351; left: 450; }
ul {position: absolute; top: 400; left: 200; }
format { margin-top: 2em; }
</style>
<div class="demo">
<input type="checkbox" id="check" /><label for="check">Toggle</label>
<div id="format">
<input type="checkbox" id="check1" /><label for="check1"> SQ </label>
<input type="checkbox" id="check2" /><label for="check2"> DL </label>
<input type="checkbox" id="check3" /><label for="check3"> BP </label>
<input type="checkbox" id="check4" /><label for="check4"> Snatch </label>
<input type="checkbox" id="check5" /><label for="check5"> CJ </label>
</div>
</div>