custom « 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 » custom 

1. jquery custom selector with colon    stackoverflow.com

I need a function to select all elements with a custom attribute, and take its name and value. for example:

<input type="text" my:name="koni" my:age="20" my:city="New York" />
Note that my is always the ...

2. What useful custom jQuery selectors have you written?    stackoverflow.com

For me, one of the best, yet under-utilised feature of jQuery is the custom selector. I have a fairly trivial example of this, to pick out all text boxes ...

3. Custom jQuery Selector    stackoverflow.com

Quick question - is it possible to extend jQuery selectors to change the resultset (for example) via traversal instead of just by filtering an existing set? To clarify - I don't want ...

4. Using jQuery to select custom fbml-like tags    stackoverflow.com

FBML is using tags like <fb:like></fb:like> <fb:board></fb:board>, etc.. How are they selecting these? I've tried $('fb') and $('fb:like'), both return an empty object... does anyone know how this can be done ...

5. jQuery custom selection    stackoverflow.com

I'd like to extend jQuery selection so that it treats a given selection value as an ID. For example, when you do $("foo.bar") , jQuery will try to select all elements with ...

6. Changing value of custom select option - Javascript    stackoverflow.com

I need assistance changing the value of a custom-select box. I cannot use JQuery because I already have a change() function hooked up to it. How can I change the value ...

7. Creating custom jQuery function without selector prerequisite    stackoverflow.com

I know that I can create custom jQuery plugins by using the $.fn.myFunction constructor, and the calling the custom function in JavaScript as $('selector').myFunction(). However, for a project I'm currently working ...

8. jQuery custom function with multiple selectors    stackoverflow.com

I am trying to create a custom jquery function which has two parameters, the one a single string defining the method in which to update the second parameter; an object of ...

9. jquery: custom selector not working    stackoverflow.com

I am trying to create a custom jquery selector to return the bool of css("visibility") == "inherit" but it doesn't seem to be working. Below is the code...

$.expr[":"].crazyvisible = function(a) {
 ...

10. jquery - selecting closest prev by custom atttribute    stackoverflow.com

this is driving me nuts! I am trying to build a dragable menu builder like in wordpress which is now nearly complete. One thing that is letting the site down is giving ...

11. A custom chained-select... a better way? Can't get ScrollTop working quite right    forum.jquery.com

Hi everyoneI've built a kind of chained-select system using jquery and a couple of DIV elements.http://thenetzone.co.uk/categorydemo/category.htmlIt works by having all the available categories loaded into the right-hand DIV as LI elements, but they are all hidden by default.Any categories currently selected for that record are shown using an inline style declaration... done server-side from our database data before the page is ...

12. [jQuery] Help with custom selector    forum.jquery.com

I wrote a custom selector to better deal with ASP.NET autogeneratedIDs. The syntax I got working is $(":asp('TextBox1')").show();Here's the code:jQuery.extend( jQuery.expr[":"], { asp: "jQuery(a).attr('id').match('_'+m[3]+'$');" });I don't really think that's more readable than using an attributeselector with the ends with option. What I'd really like to ...

13. Extending selectors to support custom objects    forum.jquery.com

Now that I ran into the issue again I'm going to revive a bit of an old thread of mine.Extensibility: Extending init selectors to support application objectshttp://groups.google.com/group/jquery-dev/browse_thread/thread/c0743849212a360a/f797c0d2f54dd9ccThe gist of the thread is talking about a feature letting you extend jQuery to handle custom objects properly.ie: If you have a Widget system in your app, you could extend jQuery so that $(widgetObject) ...

14. Is selecting custom JavaScript objects ok?    forum.jquery.com

I little while ago I had a situation where I thought it would beuseful to bind jQuery events to custom JavaScript objects. I didn'tthink it should work, as I thought you could only select DOM nodes.But as you probably know - that's not true. You can select objects too(boring details here... http://www.mrspeaker.net/2009/10/28/using-jquery-on-javascript-objects/).The bit of jQuery code that let's you do this ...

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.