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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
|
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 ... |
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) {
...
|
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 ... |
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 ... |
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 ... |
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) ... |
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 ... |