I want select every inputbox of type text and transform by a fixed amount, when checkbox is checked, so far I have this. However I wondered if there was a way to do this without iterating over every element ...
$("#myID").change(function(){
if($(this).is(':checked')){
//I can't do this :
$("input:text").val( $("input:text").val()*4);
//I have to do this ?
$("input:text").each(function(index){
$(this).val($(this).val()*4);
});
});