$(function () {
$(':button').click(function () {
var text = $(':text').val();
var has = false;
$('.content li a').each(function () {
if(this.innerHTML == text) {
has = true;
}
});
if (!has) {
$('.content').append('