In both cases the css works and the cloning doesn't.
I also have this working just fine:
- $('#test_kit .two_thirds .kit_item input:checkbox').click(function() {
- if ($(this).is(':checked')) {
- $(this).parent().clone().appendTo('#selected_items');
- } else {
- var item_id = $(this).parent().attr('id');
- $('#selected_items .kit_item[id='+item_id+']').hide('fast', function(){ $(this).remove(); } );
- }
- });
When clone() is triggered by a click it works.
I can't figure out how I could get a set of elements cloned upon page load.
Any help appreciated!
L.