<!DOCTYPE html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">
</script>
<script>
$(document).ready(function () {
$("button").click(function
() {
$("a[target='_blank']").hide();
$('[id^="txt_"]').hide();
});
});
</script>
</head>
<body>
<h2>This is a heading</h2>
<p id="txt_p">This is a paragraph.</p>
<p id="txt_p1">This is another paragraph.</p>
<button>Click me</button>
</body>
</html>
No comments:
Post a Comment