Your code looks good. And in fact it worked for me on a test page containing the following:
<label for="ds_email">Email:</label> Some reminders/things to try next: 1. Are you using the latest version of jQuery? 2. Have you tried Firebug? 3. Is your code inside a $(document).ready(function() { ... }); or (shortcut) $(function() { ... }); block? 4. Are your labels added dynamically, or are they there when the document is ready/when this code is executed? 5. Check $("label").length to help isolate the issue/ensure it has to do with the rest of your selector. - Richard On 10/29/07, Gameslife <[EMAIL PROTECTED]> wrote: > > > Hello. > > I trying to use jQuery to select label elements in my forms, utilizing > this sintax: > > var label = $("label[for='ds_email']"); > > But jQuery returns a empty object ... the label exists in the form > what I tryng to select. > > Anyone have a solution for this problem? :S > > Thanks :) > >