Welcome aboard! We are happy you are here and wish you good net-raft!
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<style>
td{
border: 1px solid black;
width: 50px;
height: 50px;
text-align: center;
cursor:pointer;
}
</style>
</head>
<body>
<table id="table"></table>
<script type="text/javascript">
for (var i = 0; i < 5; i++) {
for (var j = 0; j < 5; j++) {
$("#table").append("<td></td>");
}
$("#table").append("<tr></tr>");
}
$("td").on("click", function () {
$(this).next().text("next");
$(this).prev().text("prev");
});
</script>
</body>
</html>
The most helpful JQUERY solutions
plugin get client ip address using jqueryJQUERY Click to see more ... 10.5K 1.8K