ask lang about chaining kunyare may button ako at gusto ko ang function nya is 2 magkaibang html yung papalitan tama ba yung ganitong code?
Code:
<script>
$(funtion() {
$("#btn1").click(function(){
$("#ex").html("<p>new content</p>")
. ("#ex1).html("<h1>new title</h>);
});
});
</script>
<body>
<p id = "ex">content</p>
<h1 id ="ex1">title</h>
</body