Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
$(document).ready(function () {
$("button").click(function () {
alert($("#div1").outerWidth());
});
});
</script>
</head>
<style>
#div1
{
height: 500px;
width: 600px;
padding: 20px;
margin: 10px;
border: 1px solid black;
background-color: red;
}
</style>
<body>
<div id="div1"></div>
<br>
<button>Click</button>
</body>
</html>
The most helpful JQUERY solutions
plugin get client ip address using jqueryJQUERY Click to see more ... 10.5K 1.8K