Custom Query (13852 matches)
Results (34 - 36 of 13852)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#4383 | duplicate | [regression] Append with multiple elements doesn't bind events | ||
Description |
When attempting to use append to add a button (complete with click event handler) to multiple elements, the button appears however the click events are not bound. This only appears to effect browsers that use addEventListener, in IE it works as expected. The following does not bind an event to the buttons var button = $("<input type='button' value='Click Me!' />").click(function(){ alert("hello"); }); //there are 2 divs inside #append $("#append div").append(button); However using button.appendTo("#appendto div"); works as expected in all browsers tested (FF3, Opera9, Safari3 (Win), IE6, IE7). Both methods work when using jQuery 1.2.6 or if you're appending to a single element. |
|||
#7115 | invalid | jQuery.tmpl, options not (deep)extending data properly | ||
Description |
I noticed a little problem in the extending of the newItem with options. In the function newTmplItem there is jQuery.extend( newItem, options, { nodes: [], parent: parentItem } ); instead of jQuery.extend( true, newItem, options, { nodes: [], parent: parentItem } ); So currently if you try to extend data for example: $("#mytemplate").tmpl(data, {data:{fixedvalue:'myvalue'}}).appendTo("#mydiv"); then the fixedvalue is the only data being mapped. |
|||
#7120 | duplicate | problem with .link() and array type form inputs like <input name="foo[]" /> | ||
Description |
If you have an input called party[children] with a value of 5 and you use the new jquery .link() to link the form to an object, it creates { 'party[children]': 5 } instead of { party: { children: 5 } } like I would expect... |