<!DOCTYPE html>
<html lang="en-US">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> </head>
<body>
<h1>jQuery prop() Method</h1>
<p>My Name is <span></span>.</p>
<button>Get My Name</button>
<script>
$(document).ready(function(){
$("button").click(function(){
$("span").prop("name", "Jade");
$("span").text($("span").prop("name"));
});
});
</script> </body>
</html>