+ 3
Comment (How to make the following code in HTML, CSS and JAVASCRIPT) (Give it in the form of code)
*********************** * * * * * Comment Posted * * * * * *********************** *********************** * * * * * Comment to be * * post * * * * * *********************** (Post)
6 Answers
+ 8
example
$(function() {
//on below is a event that if #add on clicked and will work
$("#add").on("click", function() {
var val = $("input").val();
if(val !== '') {
var elem = $("<li></li>").text(val);
$(elem).append("<button class='rem'>X</button>");
$("#mylist").append(elem);
$("input").val("");
}
});
});
+ 6
huh?? what do you mean??
+ 5
use jquery đ
0
We write the comment in the 2nd box
0
When we click the post button
0
It will be displayed on the 1st box