$().ready(function() { $('input[value="Vote"]').each(function(){ $(this).attr("value", "Save"); }); });