[jQuery] Get elements with a given class and send it with load()

[jQuery] Get elements with a given class and send it with load()

Hi All,
I have a list like this :
<ul>
<li value='1'></li>
<li value='2'></li>
<li value='3'></li>
<li value='4'></li>
<li value='5'></li>
</ul>
When I click on a list, I add the "selected" class with toggle().
I want to send li with the "selected" class in parameter with load().
I've tried this but it doesn't work :
            load = function(type) {
                params = $(".selected").serialize();
                $("#"myDiv").load(
                    "load.php",
                    {load: type,
                    test: params}
                );
            }
How can I do?
Thanks,
Mathieu
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/