If you have inserted DOM objects into the HTML in $(document).ready(function() {…}). Those binded events will not applied to newly inserted DOM objects. In the following example, a new button is inserted whenever the .btn is clicked. but it is only valid for the first .btn button. Continue reading jQuery – Bind event to newly inserted element
Tag Archives: DOM
JAXP – Java API for XML Parsing @ 2
Most of the time, the xml contains node attributes other than node values. The following example shows u how to get the node attributes in xml.
Continue reading JAXP – Java API for XML Parsing @ 2
JAXP – Java API for XML Parsing @ 1
To parse an xml in java, we can make use of the JAXP – Java API for XML Parsing. The JAXP provides 2 standards which are SAX and DOM respectively. Here is the sample code which parses an xml using the DOM standard.
Continue reading JAXP – Java API for XML Parsing @ 1