In this case, you do not need to write each cycle. try it
$(function(){ // Select all text fields but not Description field.. var $txtfields = $('.campaign-column:not(.active)').find('input[type=text][name!=DESCRIPTION]') $('#btn1').on('click', function() { $txtfields.val('') ; }); });โ
Check FIDDLE for a working example.
source share