I need some help with an ajax request and the use of data in a jQuery progressbar.
Here is the index.html
<div id="progressbar"></div>
Here is the test.json
{ "progressbar":12 }
Here is the JavaScript code
$(function() {
$.ajax({ dataType:"json",
url: test.json,
success: <!-- dont know what to do here -->,
});
$( "#progressbar" ).progressbar({
value: <!-- Dont know what to do here -->
});
});
I am sorry, but I am not used to jQuery and json. I would be glad for a really good example!!!
Thank you very much!
Use your success to update the progress bar
Fiddle here