you must filter your events by target
$("#form_container").bind("click", function(event){
if (event.target !=$("#id_content")[0]) $
("#id_content").trigger('click');
});
*sighs* on behalf of spam. :(
Anyone know have suggestions as to what I am doing wrong.
On Feb 27, 2:11 am, saifullah hanif wrote:
> http://tinyurl.com/cyecufhttp://tinyurl.com/ahvxzc
>
> http://tinyurl.com/8rwmkr
>
> http://tinyurl.com/7wbm8o
> On 2/26/09, Chris wrote:
>
>
>
> > I tried this:
http://tinyurl.com/cyecuf
http://tinyurl.com/ahvxzc
http://tinyurl.com/8rwmkr
http://tinyurl.com/7wbm8o
On 2/26/09, Chris wrote:
>
>
> I tried this:
>
>$("#form_container").click(function(event) {
>event.stopPropagation();
>$("#id_content").trigger('click');
>});
>
> AND
I tried this:
$("#form_container").click(function(event) {
event.stopPropagation();
$("#id_content").trigger('click');
});
AND This:
$("#form_container").bind("click", function(event){
event.stopPropagation();
$("#id_content").trigger('click');
})
The click event is bubbling, try adding event.stopPropagation()
On Feb 24, 1:07 pm, Chris wrote:
> Hello so I am trying to create an image that once clicked will trigger
> the file input field but I am getting an error Here is what I am
> doing:
>
> # Set the image in the div
> $("#form_containe
5 matches
Mail list logo