Set sur toutes les méthodes

This commit is contained in:
Michael RICOIS 2011-12-14 15:14:15 +00:00
parent 3cd22f4e02
commit eb366feca2

View File

@ -3,7 +3,6 @@ $(document).ready(function(){
$('#tabs').delegate('select.criteres', 'change', function(e){
e.preventDefault();
e.stopPropagation();
alert($(this).attr('name') + ' = ' + $(this, ':selected').val() );
set($(this).attr('name'), $(this, ':selected').val());
return false;
});
@ -11,21 +10,21 @@ $(document).ready(function(){
$('#tabs').delegate('input[type=checkbox].criteres', 'click', function(e){
e.preventDefault();
e.stopPropagation();
alert($(this).attr('name') + ' = ' + $(this).val() );
set($(this).attr('name'), $(this, ':selected').val());
return false;
});
$('#tabs').delegate('input[type=radio].criteres', 'click', function(e){
e.preventDefault();
e.stopPropagation();
alert($(this).attr('name') + ' = ' + $(this).val() );
set($(this).attr('name'), $(this, ':selected').val());
return false;
});
$('#tabs').delegate('input[type=text].criteres', 'blur', function(e){
e.preventDefault();
e.stopPropagation();
alert($(this).attr('name') + ' = ' + $(this).val() );
set($(this).attr('name'), $(this, ':selected').val());
return false;
});