HTML (между тегами Body)
Код: Выделить всё
To Do
Here's your very own to do list, complete with added jQuery
Add
Tick a box next to your entry show as complete
Код: Выделить всё
$(document).ready(function(){
$('button').click(function() {
var toDoItem = $('input[name=toDoEntry]').val();
if(toDoItem.length === 0) {
alert('You need to add an entry into the toDo list');
} else {
$('#toDoList').append(toDoItem);
}
});
});
Саймон
Подробнее здесь: https://stackoverflow.com/questions/137 ... -wont-work
Мобильная версия