Hey you guys!

I have this code:

$(document).ready(function(){
        $('#addWord').submit(function(){
                $.ajax({
                        type: "POST",
                        url: "add.php",
                        data: {"word": $('#word').val()}
                })
        $('#wordBank').load('words.php', '', function(){ $('.word',
this).draggable() });
        return false;
        })

        $('#wordBank').load('words.php', '', function(){ $('.word',
this).draggable() })
});

And on submit..i want the new word i added via my form to be shown and
fade in. Would i use ajax.success? I have been trying to play with
this on my own for awhile know using the docs/google/groups, but no
luck at all

I have my HTML being printed via my php page, is that fine or should I
have it be loaded via jquery?

Thank you so much in advance

Ryan

Reply via email to