Click here to Skip to main content
15,903,012 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have 4 textboxes in my website application.

in javascript i apply color all 4 textboxes at a time. how to write in javascript.
Posted

use this it will change all textboxes color.

JavaScript
<script type="text/javascript">
       $(document).ready(function () {
           $('input:text').css('background-color', '#ffff00');
       });
</script>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900