Thanks Karl!
I'll give it a try.
Harvey
Thank you Mike.
That makes sense!
But what is the purpose of .get() then? What could I do with an
"actual JavaScript Array object" which I couldn't do the way you
demonstrate?
Harvey
On Dec 2, 11:48 am, Michael Geary wrote:
> The jQuery object - the return value from $(whatever) - is an array-
ld try $(boxes[i]).css perhaps
>
> Thanks & Regards,
> Dhruva Sagar.
>
> On Thu, Dec 3, 2009 at 1:04 AM, hsfrey wrote:
> > I'm using the following code:
>
> > var boxes = $('.resizable').get(); // get divs as array
> >
I'm using the following code:
var boxes = $('.resizable').get(); // get divs as array
for (var i=0; i
Do jQuery or JavaScript provide any facility like the data-binding
facility of ActionScript, whereby changing a variable immediately
applies the changed value throughout the program?
Apparently that works by implementing an onChange event whenever the
variable is changed.
I have a div which is resizable (using ui.resizable.js).
I would like a vertical scrollbar to appear only if the text is
truncated as the div is resized.
If I use a style = overflow-y:scroll, or overflow-y:auto I get the
same result - the scroll bar is Always there, even if the div is far
large
Michael:
Yes, Indeed! That works perfectly! Thank you!
And it seems so simple and obvious in retrospect.
Actually, I hadn't realized that I could put the selector into a
variable and reuse it that way, so you've taught me something else
new.
Harvey
n though it LOOKS like it's set, it
ACTS on subsequent calls as though it hasn't been.
Harvey
On Oct 8, 11:19 pm, Giovanni Battista Lenoci
wrote:
> hsfrey ha scritto:
>
> > function togl(b1) {
> > var t1 = document.getElementById(b1).getElementsByTagName("input&q
Giovanni:
Thank you for your response.
> I can't understand what value are you looking for, but should be something
> link $('#id').val() or $(this).val().
I'm trying to get the jQuery code to replace this JS which works to
toggle the label:
function togl(b1) {
var t1 = document
In this line of code, I'm looking for a div whose Id is in variable
b1, and which has an input button field whose value is "Show" or
"Hide", and this line is to toggle those values.
$(("[id$="+b1+"]") input).attr(value, attr(value)
=="Hide"?"Show":"Hide");
This doesn't work, and Firebug gives m
In this line of code, I'm looking for a div whose Id is in variable
b1, and which has an input button field whose value is "Show" or
"Hide", and this line is to toggle those values.
$(("[id$="+b1+"]") input).attr(value, attr(value)
=="Hide"?"Show":"Hide");
This doesn't work, and Firebug gives
11 matches
Mail list logo