document.getElementById('contact-form-ls').innerHTML='Chargement du formulaire...'; newScript = document.createElement('script'); newScript.type = 'text/javascript'; newScript.src = '//ls-contact-form.com/tricoloresports/form/assets/jquery-scripts.js'; document.getElementsByTagName('head')[0].appendChild(newScript); function initForm(){ $(function(){ $.ajax({ cache:false, type: 'GET', url: '//ls-contact-form.com/tricoloresports/form/?lang=fc', }).done(function(results) { $('#contact-form-ls').html( results ); }); }); }