Error while it works... "Click Da Button! Do It Naoughw!"


#1

Hello,

I have a problem that I can't understand, with the part "Click Da Button! Do It Naoughw!"

You can see my code here, to test it

Or if you prefer to see the code here...

Thank you :slight_smile:

$(document).ready(function(){

//crée une ul
$('.list').append('<ul id="ul"></ul>');
var ul = $('#ul');
//au clic #button
$('#button').click(function(){
    //va chercher la valeur qui est dans l'input name="checkListItem"
    var toAdd = $('input[name=checkListItem]').val();
    //crée une li avec la variable dedans
    ul.append("<li>"+toAdd+"</li>");
});

});

`


#2

Well... I found why...
I was to speed for him and did more than expected :kissing_smiling_eyes:


#3

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.