Hello,
how can i get the subelements?
i have something like this
$('mydiv').$('mydiv2').$(mydiv3').innerHTML
that dosent work. How can i get this values ?
and how can i irretate all divs in a parent div?
thanks for help
--~--~-~--~~~---~--~~
You received
Hello,
i use this structure
$o .= div id=\entry\ class=\entry\
onclick=\setObjBackgroundColor(this,'#ff');;ui.copyObject(this,'EntryList','TargetList','noduplicate');\
onMouseOver=\setObjBackgroundColor(this,'#cc');\
Hi all,
I have a button like this: a id=btn1some button/a
This code works in safari and firefox, but fails in IE6: $
('btn1').writeAttribute('onclick', alert(123));
The onclick event does not fire in IE6.
What should I do?
I know Event.observe is better, but I want to use variables to pass a
I SOLVED thanks artorius from forum.html.it
in the php (server side)
echo
script type=text/javascript
$('searchButton').observe('click',
function search(){
alert('works!!!');
}
$('btn1').observe('click', function() {
alert(123);
alert(321);
});
That would be lovely, but all my methods live in a class. I need to
pass variables to that class. Right now, I want to pass functions to
that class. How can I do that? I only know how to pass functions
inside a string,
On Oct 26, 3:00 pm, Cliff [EMAIL PROTECTED] wrote:
$('btn1').observe('click', function() {
alert(123);
alert(321);
});
That would be lovely, but all my methods live in a class. I need to
pass variables to that class. Right now, I want to pass functions to
that class. How can I do
Try
$('btn1').writeAttribute('onclick', function () { alert(123); });
And you can still do what you want with observe, BTW.
--
Jonathan Rosenberg
Founder Executive Director
Tabby's Place
http://www.tabbysplace.org
-Original Message-
From: