I have created a python script that gets and returns the size of files with given start&end date params. I have written function for a check box that when clicked it displays a hidden field. In this hidden field I would like the size of the files to be displayed. I have attempted to write a get function in order to run the function on click, but nothing.
I understand that I have to use AJAX, but I have little to no knowledge on this and very little on JavaScript.
Any help would be greatly appreciated..
$('#hidden').hide();
$('#getfiles').click(function() {
if(this.checked) {
$('#hidden').show({
$.get('views/ajax', function(getSize) {
$('#hidden').click(getSize)
});
} else {
$('#hidden').hide();
}
});