Hi
I have this code
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
function get() {
$.post('js_data.php',
function (output) {
$('#test').html(output).show();
});
}
</script>
</head>
<body>
<input type = "button" name="button" id="button" value="Submit" onClick="get();">
<div id = "test"></div>
It displays the info in js_data.php whenever I click on the button.
How do I get it to display the data when I open the page?