Tags


<input type="text" placeholder="Search Microsoft Partner Network" class="my_textarea'">

Placeholder : Search Microsoft Partner Network

Using below code changing the resolution 680 below screen size:

Output :

Placeholder : Reply...

$('.my_textarea').each(function() { $(this).data('placeholder', $(this).attr('placeholder')); }); function changePlaceholder() { if( $(window).width() < 680 ){ $('.my_textarea').attr('placeholder','Reply...'); } else { $('.my_textarea').each(function() { $(this).attr('placeholder', $(this).data('placeholder'));

});

}

}

$(window).resize( changePlaceholder ).trigger('resize');