$(document).ready(function() { $('#ratios a[tooltip]').each(function() { $(this).qtip({ content: $(this).attr('tooltip'), style: { width: 500, classes: "ui-tooltip-dark" }, position: { at: "bottom center", my: "top center" } }); }); $('.rTip').each(function(){ $(this).qtip({ content: { text: "Chargement...", title: { text: $(this).attr('name') }, ajax: { url: $(this).attr('rel') } }, position: { at: "right center", my: "right center", adjust: { x: -20 } }, show: { solo: true }, style: { tip: true, width: 400, classes: "ui-tooltip-light" } }); }); $('[name=mil]').change(function(){ window.location.href = $(this).val(); }); $('input[type=radio][name=typeBilan]').change(function(){ window.location.href = $(this).val(); }); });