Hello
I have a problem with adding event click to elements by class name.
I'm trying to add event onclick to all input tags that have class
compare_itm by this code:
$$('input.compare_itm').observe('click', myFunction);
But it doesn't work. Is it possible to do in Prototype ?
thanks
--
You
://api.prototypejs.org/language/enumerable/prototype/invoke/
Hope this helps!
Greets,
Johan
On Mon, Aug 23, 2010 at 9:35 AM, elivol eli...@gmail.com wrote:
Hello
I have a problem with adding event click to elements by class name.
I'm trying to add event onclick to all input tags that have
Hello.
I have this HTML code:
div class=item_content sale_num=12345some stuff/div
div class=item_content sale_num=123456some stuff/div
I need to insert a checkbox into div item_content with value of
sale_num attribute.
I'm trying to do it with:
$$('div.item_content').invoke('insert', {bottom:
get, so your checkboxes will
tell a story to your compare script!
Walter
On Aug 27, 2010, at 9:01 AM, elivol wrote:
Hello.
I have this HTML code:
div class=item_content sale_num=12345some stuff/div
div class=item_content sale_num=123456some stuff/div
I need to insert a checkbox
name. FWIW.
HTH,
--
T.J. Crowder
Independent Software Consultant
tj / crowder software / comwww.crowdersoftware.com
On Aug 29, 8:47 am, elivol eli...@gmail.com wrote:
Hello
Unfortunately it doesn't work:
$$('div.item_content').invoke('insert', {bottom: 'input
type=checkbox class