Can someone please point out to me what I am guessing is very simple error in my script.
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script>
$(document).ready(function(){
var pn = $("#search");
$("button").click(function(){
$("#div1").load("data.asp?prodref= #result"+pn);
});
});
</script>
</head>
<body>
<p id="search">92K002</p>
<div id="div1"><h2>Let jQuery AJAX Change This Text</h2></div>
<button>Get External Content</button>
</body>
</html>
I am trying to pass the text from <p id="search">92K002</p>
to .load()