I've been working on a new project using jQuery UI to create a "to do list" application. So far, I've managed to get it up and running, but I'm having trouble displaying the tasks correctly in the designated div. Instead of showing up as a bar with a delete button and completed option, they are just appearing as plain text. Should I be including jQuery directly within the HTML as well?
If you'd like to see the current state of my app, check it out on this fiddle:
For simplicity, I'll only include the jQuery portion of the code here. The complete version can be found on the Fiddle link.
$("document").ready(function() {
$('#due_date').datepicker();
$('#add_task').button({ icons: { primary: "ui-icon-circle-plus" } }).click(function() {
$('#new_task').dialog('open'); }); // end click
$('#new_task').dialog({ width: 350,
height: 300,
modal: true,
autoOpen: false,
close: function() {
$('#new_task input').val(' '); /*clear fields*/
}, buttons: {
- Code continues from here -
Your help and guidance on resolving this issue would be greatly appreciated!