firebug « selector « jQuery Q&A

Home
jQuery Q&A
1.addClass
2.alert
3.array
4.attribute
5.browser
6.callback
7.clone
8.Cookie
9.Date
10.Development
11.document
12.dom
13.element
14.filter
15.Firefox
16.flash
17.format
18.html
19.input
20.internet explorer
21.json
22.mootools
23.page
24.performance
25.regex
26.safari
27.selector
28.setTimeout
29.String
30.table
31.Text
32.trigger
33.URL
34.video
35.xml
jQuery Q&A » selector » firebug 

1. javascript selectlist remove all options    stackoverflow.com

I have a <select> list which has been populated with several options, but want to remove those options to start again. I am using Jquery, and have tried:

$("#selectId").length = 0;
but ...

2. What does the firebug error $( mean?    stackoverflow.com

Usually, Firebug gives a half decent error message when something goes wrong or doesn't compile. In this case though, I am simply getting the following:

X: $(
$('#' + divName).emtpy(); 
The code is ...

3. jQuery + console (Firebug): check selector    stackoverflow.com

I'm trying to use console.log("item") to find out if my selector is correct, what is the best way to go about just trying to "trace" a selector?

console.log(my-jQuery-selector);

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.