[jQuery] Click Binding not Working

2009-08-25 Thread S2

I have this code that works:

var btnInput= document.getElementById('btnInput');
btnInput.addEventListener("click", showVal, true);

Why doesn't this work?

$('btnInput').click(showVal);
$('btnInput').bind('click', showVal);


[jQuery] Display DIVs as Multiple Columns

2009-08-24 Thread S2

How can I display a bunch of DIVs in multiple columns? Like Flex's
TileList component.

A
B
C
C
E
F
G

A B C
D E F
G

A B C D
E F G


[jQuery] Re: Click() Not Working

2009-08-14 Thread S2

http://www.w3.org/
TR/html4/strict.dtd">


   
   
   
   
   
  $(function(){
  $("td a.menu:contains('Main')").click();
  });
   


   
  
 
 
 
 
  
  
 
Main
 
 
 
  
   



On Aug 13, 6:32 pm, Jules  wrote:
> $("td a.menu:contains('Main')").click() should work. Can you post the
> html?
>
> On Aug 14, 4:48 am, S2  wrote:
>
> > This doesn't work in IE or Firefox:
>
> > $("td a.menu:contains('Main')").click();
>
> > This works in IE:
>
> > $("td a.menu:contains('Main')")[0].click();
>
> > $("td a.menu:contains('Main')").length is 1
>
> > What am I doing wrong?


[jQuery] Click() Not Working

2009-08-13 Thread S2

This doesn't work in IE or Firefox:

$("td a.menu:contains('Main')").click();

This works in IE:

$("td a.menu:contains('Main')")[0].click();



$("td a.menu:contains('Main')").length is 1

What am I doing wrong?


[jQuery] Looking for a Good JavaScript Editor that Supports JQuery

2009-08-02 Thread S2

Does anyone know of a good JavaScript editor that supports JQuery?
Anyone sucessfully integrate JQuery into Eclipse/WTP or JSEclipse?