Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #subcontractor_content div.form_segment textarea:hover {
- border: 3px solid #bcd4ec;
- }
- #subcontractor_content div.form_segment textarea.firstLoad {
- background-image: url('../subcontractor/images/comments.png');
- background-position: top left;
- background-repeat: no-repeat;
- }
- #subcontractor_content div.form_segment textarea.alt {
- border: 3px solid #bcd4ec;
- background-image: none;
- background-color: #ECF6FC;
- }
- $("textarea").addClass("firstLoad");
- $("textarea").focus(function () {
- $(this).addClass("alt");
- });
- $("textarea").blur(function () {
- $(this).removeClass("alt");
- content = $(this).val();
- if(content!="") {
- $(this).removeClass("firstLoad");
- }
- else {
- $(this).addClass("firstLoad");
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement