Storing parameter value in get data in a variable
Hi all,
Please take a look at the code below:
-
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$.get("final.html", function(data){
alert (data);
});
});
</script>
data stores the whole final.html
final.html contains a variable called page. page can have different values as it is dynamically fed.
It can be, for example: var page = "5"; or var page = "358"; or var page = "63";
I need to get the number (the value) in a variable. How can I do it??
Thanks a million in advance!!