Facebook Twitter Reset

This Tutorial Has Been Viewed 1,723 Times.

Removing Nodes using javascript

The code below will teach u how to remove child nodes using javascript


<script language=”javascript” type=”text/javascript”>function remove(parent,child){var p = document.getElementById(parent);var c = document.getElementById(child);

p.removeChild(c);

}

</script>

<input name=”balu1″ name=”ada1″ value=”To Remove” onclick=”remove(‘torque’,'show’)” type=”button” />
<div id=”torque”>
<div id=”show”><img src=”urimage.jpg” /></div>

</div>

</html>


Any doubts plz contact me Undecided

VN:F [1.9.13_1145]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.13_1145]
Rating: 0 (from 0 votes)

Incoming search terms:




You will also be interested in ,

No comments yet.

Leave a Comment

Spam protection by WP Captcha-Free

Affordable Seo PackagesSeo BlogEdu Backlinks
More in perl (1 of 14 articles)