I have a function that on change event run the post actions.
$(\"select#marca\").change(function(){
var marca = $(\"select#marca option:selected\").attr(
To call onload
, you can try jQuery:
$(document).ready(function(){
onchange();// onload it will call the function
});
Write your onchange function like this, so this will be called when onchange
occurs,
function onchange(){
var marca = $("select#marca option:selected").attr('value');
$("select#modello").html(attendere);
$.post("select.php", {id_marca:marca}, function(data){
$("select#modello").html(data);
});