How do I create a subclass ?
(function($) {
$.fn.myname = function(){
return this.each(function(){
});
}
})(jQuery);
(function($) {
$.fn.myname.subname = function(){
return this.each(function(){
});
}
})(jQuery);
$("#id1")
How do I create a namespace within jQuery ?
(function($) {
var myNS = {};
})(jQuery);
(function($) {
$.fn.myNS.foo_1 = function(){
};
})(jQuery);
(function($) {
$.fn.myNS.foo_2 = function(){
};
})(jQuery);
$("#id1, id2").myNS.foo_1();
$(".cls1, .cls2").m
"normal".
>
> http://www.w3.org/TR/CSS21/visudet.html#propdef-line-height
>
> --Klaus
>
> On 20 Feb., 07:33, Anjanesh wrote:
>
> > $('.div > p').css('line-height', '25px'); works but $('.div > p').css
> > ('line-height', 'auto'); doesnt.
> > Is there anyway to set to auto ?
$('.div > p').css('line-height', '25px'); works but $('.div > p').css
('line-height', 'auto'); doesnt.
Is there anyway to set to auto ?
I understand jQuery has parameters stored in event.data.*
But Is there a way to achieve this using jQuery ?
var someVar = {
init : function () {
$('#someID').bind("click", ['arg1', 'arg2'],
this.add);
},
add : function(p1, p2) {
alert(p1 + ' : ' + p2); // Doesnt show a
().filter(":first").fadeTo
> (1500, 0.3);
>
> easily found using the docs:http://docs.jquery.com/Selectors
>
> On Jan 5, 9:09 am, Anjanesh wrote:
>
> > Hi
> > How do get to select the FIRST sibling ?
>
> > The problem with this is that it fades out al
Hi
How do get to select the FIRST sibling ?
The problem with this is that it fades out all the siblings.
Click here
Thanks
Is there a way to reduce this
$("#id1, #id2, #id3, #id4, #id5, #id6, #id7, #id8, #id9,
#id10").click(function() { ... });
to something like this
$("#id[1-10]).click(function() { ... });
?
But doesnt $("#id1 > :text") select only the first textbox under #id1
element ?
I wanted to bind the focus function to all textboxes under id1.
But I found this plugin (http://www.texotela.co.uk/code/jquery/
focusfields/) to do what I wanted to do anyway.
Hi
I cant get this seem to work
$("#id1 > [EMAIL PROTECTED]").bind("onfocus", foo);
Is there something wrong with the argument ?
Thanks
Hi
All this time I was using AJAX natively. But now Im getting the hang
of jQuery.
I normally want to check if Im getting a 200, 404, 500 etc response
status on success
[code]
var xhr = NewXMLHttpRequest();
xhr.onreadystatechange = xhrChange;
function xhrChange()
{
switch (xhr.readySt
Wow ! I really thought prototypejs being the more popular one !
http://www.prototypejs.org/real-world
Odd, I thought Google Web Toolkit (http://code.google.com/webtoolkit/)
was another JavaScript framework.
12 matches
Mail list logo