David Duymelinck schrieb:
> Klaus Hartl schreef:
>> * Automatic type detection depending on type of element, respectively on 
>> type of link:
>>      image: href is an image
>>      content: href is a hash
>>      ajax: href is internal and not image
>>      iframe: href is external and not image
>>      confirm: element is form
>>   
> Is it possible to bind the confirm to the button and not to the form, 
> that way there can be different confirms for a form. I'm thinking about 
> a datagrid with two delete buttons, one to delete a row and one to 
> delete all the data.

Thats not really possible, because you can always submit a form by 
hitting enter. Besides that it won't degrade graceful, e.g. I'd consider 
that obtrusive - a button (type button) without JS is useless.

Can't you just use two forms?




-- Klaus


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to