Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(function(){
- $("#lista li").live("click", function(){
- $(this).zmienStan();
- if ($(this).hasClass('z_glowy')){
- $(this).hide('puff');
- }
- });
- $('form input[type="text"]:first').focus();
- $('#dodaj_robote input[type="submit"]').click(function(){
- var robota = $('#dodaj_robote input[type="text"]').val();
- var li = $('ul#lista li:first').clone();
- var wypelnione_li = li.text(robota);
- wypelnione_li.removeClass('hidden');
- wypelnione_li.usunKlase();
- $('ul#lista').prepend(wypelnione_li);
- $('#dodaj_robote input[type="text"]').val('');
- $('input[type="text"]:first').focus();
- return false;
- });
- $("#lista ").sortable();
- });
Add Comment
Please, Sign In to add comment