Im having trouble trying to figure out some code someone has suggested and was hoping someone could explain it a bit more, or suggest something easier.
I have 3 textboxes which i need to fill with dynamic data from a MySQL database, which data is shown is dependant on what the user clicks in a select dropdown box.
The code i have is the following:
<script type="text/javascript">
jQuery(function( $ ){
$("select").change(function(e) {
$(".temp").load(\'index.php?parameter1=\'+ $(this).val(), , function() {
$(".textbox1").val($(".temp1").text());
});
});
});
</script>
Im not quite sure how to use javascript so im unsure of how this works, and also what code would go into the index.php file?
Any help would be greatly appreciated.
Cheers