jquery append div
$('#box').append(
$('<div/>')
.attr("id", "newDiv1")
.addClass("newDiv purple bloated")
.append("<span/>")
.text("hello world")
);
jquery append div
$('#box').append(
$('<div/>')
.attr("id", "newDiv1")
.addClass("newDiv purple bloated")
.append("<span/>")
.text("hello world")
);
add on click to div using jquery
$(document).ready( function() {
$("#viewclick").click( function() {
// this will fire when you click view
});
$("#editclick").click( function() {
// this will fire when you click edit
// hide the view button here and upon submit, show it again
// like $("#viewclick").hide() or $("#viewclick").fadeOut()
});
});
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us