you must filter your events by target
$(#form_container).bind(click, function(event){
if (event.target !=$(#id_content)[0]) $
(#id_content).trigger('click');
});
http://tinyurl.com/cyecuf
http://tinyurl.com/ahvxzc
http://tinyurl.com/8rwmkr
http://tinyurl.com/7wbm8o
On 2/26/09, Chris macmichae...@gmail.com wrote:
I tried this:
$(#form_container).click(function(event) {
event.stopPropagation();
$(#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 saifullah...@gmail.com wrote:
http://tinyurl.com/cyecufhttp://tinyurl.com/ahvxzc
http://tinyurl.com/8rwmkr
http://tinyurl.com/7wbm8o
On 2/26/09, Chris
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');
});
But
The click event is bubbling, try adding event.stopPropagation()
On Feb 24, 1:07 pm, Chris macmichae...@gmail.com 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
5 matches
Mail list logo