<title>jQuery :attr() Method Set Multiple Attributes and Values</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
$(document).ready(function(){
$('.mybtnsetmultiple').click(function(){
$( ".myinputsetmultiple" ).attr({style:"background:yellow", placeholder:"Enter your name"});
<h2>jQuery :attr() Method Set Multiple Attributes and Values</h2>
<button type="button" class="mybtnsetmultiple">Click to Set Multiple attributes</button><br><br>
<input type="text" class="myinputsetmultiple" name="name">