Posts Tagged ‘jQuery

You can stop nested elements triggering their parent element event handlers (DOM bubbling) using this handy jQuery method:
http://api.jquery.com/event.stopImmediatePropagation/
I ran into this issue whilst working on a calendar/scheduling app. Where day containing elements needed click events and their child elements needed click events too.
Love the jQuery ;]

If you wanted to manipulate elements you’d added to a page with jQuery after the DOM had loaded, you used to have to specify event handlers when adding them.
jQuery v1.3 has a handy new ‘live’ method. Which basically allows you to access all elements, whether present at page load or added dynamically afterward with jQuery.
jQuery [...]

It seems that you can’t submit a form with jQuery using:
1$(’form#myform’).submit();
If you have an input in the form with the name attribute set to submit. So this doesn’t work:
1<input type="submit" name="submit" value="Press to continue" />
Change the name attribute to something else other than submit and it works fine ;]


top