si, si trova all'interno.
Inoltre mi sono dimenticato di dire che (sempre all'interno del ready) il form viene popolato da questa porzione di codice

codice:
$("button[data-toggle=modal]").on('click',function(event){
                event.preventDefault();
                $("form").find("input").val("");
                var $bott = $(this);
                setting = $bott.attr('rel');
                $.post("/pages/dinami_odl.php?module=caricamento_menu",{eventmaterial: $bott.attr('rel') },function(data){
                    newdate = "<option>ROOT</option>";
                    $("select").html(newdate+data.t);
                    if($bott.attr('rel')>0){
                        $("input[name=materiale]").val(data.d)
                        $("input[name=nome]").val(data.testo)
                    }
                },"json").error(function(x,status){
                    if(x.status != 200){
                        $.prompt("Numero errore "+x.status+" : "+x.statusText);
                        $($bott.attr('data-target')).modal('hide')
                    }
                });
            });