[jQuery] Re: Capture a click outside of a specific object?

2009-01-15 Thread vincent voyer
You can do : $(document).bind('click', function(e){ var $clicked = $(e.target); if (!($clicked.is('#element') || $clicked.parents().is ('#element'))) { //click outside,

[jQuery] Re: passing 0 to html() doesn't work like it does for other numbers

2008-06-17 Thread vincent voyer
If you just want to insert numbers try .text() instead of .html() ? On Jun 17, 5:57 am, "Morgan Allen" <[EMAIL PROTECTED]> wrote: > This has to do with the way JS evaluates true and false with 0. !0 == true. > The simple fix is passing String(0), line 964 (in current svn) is the > problem, if(!el

[jQuery] Re: Selecting Row When Checkbox in a TD is Checked?

2008-06-13 Thread vincent voyer
Correct syntax : $(".Dinner:checked").parent().parent().show(); $(".Dinner :checked") means ":checked items chidren of .dinner elements" wich is not what you want And remove that thing PLEASE ! (use at least or write a css rule) :) On 13 juin, 03:53, Vik <[EMAIL PROTECTED]> wrote: > I found

[jQuery] Re: easy way to get all input value

2008-06-13 Thread vincent voyer
Hello, $('#myform').serializeArray() will give you a great Json object to work with ! (And send it to a $.post request for example) Dunno if it's what you were searching for but i use it very often to send data to an ajax request On Jun 13, 4:56 am, Jack Killpatrick <[EMAIL PROTECTED]> wrote: >

[jQuery] Re: Hide/Close div when clicked outside of it.

2008-06-05 Thread vincent voyer
Hello, for those wondering, if you want to know whenever you click outside a div and byt outside i mean everywhere but the div like you want to display an error message : test error click outside p.error { position:absolute; top:40%; left:30%; width:40%; blaeblalbldsqdsqfsqf fsqfqsf ERROR