Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. #subcontractor_content div.form_segment textarea:hover {
  2. border: 3px solid #bcd4ec;
  3. }
  4. #subcontractor_content div.form_segment textarea.firstLoad {
  5. background-image: url('../subcontractor/images/comments.png');
  6. background-position: top left;
  7. background-repeat: no-repeat;
  8. }
  9. #subcontractor_content div.form_segment textarea.alt {
  10. border: 3px solid #bcd4ec;
  11. background-image: none;
  12. background-color: #ECF6FC;
  13. }
  14.  
  15. $("textarea").addClass("firstLoad");
  16. $("textarea").focus(function () {
  17. $(this).addClass("alt");
  18. });
  19. $("textarea").blur(function () {
  20. $(this).removeClass("alt");
  21. content = $(this).val();
  22. if(content!="") {
  23. $(this).removeClass("firstLoad");
  24. }
  25. else {
  26. $(this).addClass("firstLoad");
  27. }
  28. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement