One more problem -

Here is the CODE structure -
<div class="tab-page" id="cbtab46"><h2 class="tab">About Me</h2>

I already have declared an Element like this -
var e1 = $('cbtf_46');

Now, I want to add a Click Event for the *<H2></H2>* using that *e1*variable.

What will be the CODE ?
*e1.*.....*.addEvent('click', function(e) {....}*




On Sat, Jan 17, 2009 at 12:54 PM, gabriel munteanu <[email protected]>wrote:

>
> you need 2 calls:
> getElements('table[id^=cbtf_:]');
> getElements('div[id^=cb_tabid_]');
>
> ^= means attribute starting with
>
> jgabios
>
> On Fri, Jan 16, 2009 at 9:20 PM, Ayan <[email protected]> wrote:
> >
> > Hello,
> >
> > I need a help to catch these HTML elements -
> >
> > Elements -
> > <table class="cbFieldsContentsTab cbFields" id="cbtf_46">....</table>
> > <table class="cbFieldsContentsTab cbFields" id="cbtf_2">....</table>
> > <table class="cbFieldsContentsTab cbFields" id="cbtf_21">....</table>
> > <table class="cbFieldsContentsTab cbFields" id="cbtf_11">....</table>
> > <table class="cbFieldsContentsTab cbFields" id="cbtf_20">....</table>
> >
> > <div class="tab-content cb_tab_content cb_tab_tab_main"
> > id="cb_tabid_40">....</div>
> > <div class="tab-content cb_tab_content cb_tab_tab_main"
> > id="cb_tabid_24">....</div>
> >
> >
> > What will be the statement ?
> > var el = $$( ???? );
>



-- 
Ayan Debnath
Future iOsoft Technology. INDIA
http://www.gigahertz.net.in

Reply via email to