diff options
author | Struan Donald <struan@exo.org.uk> | 2011-07-25 21:00:11 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-07-25 21:00:11 +0100 |
commit | bd5bc648aadd62d45a3a4117aa280d0ba7f5f755 (patch) | |
tree | e68aa71c56127d430ae95d0f1cf8ba6c31fd338a /web/js/southampton.js | |
parent | 85745e3d59689af171abc3fbe98ef8d9e5f10e88 (diff) | |
parent | c916094412f4eacfb1a56a0d9bb00e15f53ab253 (diff) |
Merge branch 'master' of ssh://git.mysociety.org/data/git/public/fixmystreet into lichfield-cobrand
Diffstat (limited to 'web/js/southampton.js')
-rw-r--r-- | web/js/southampton.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/web/js/southampton.js b/web/js/southampton.js index da9552f05..1f3e16105 100644 --- a/web/js/southampton.js +++ b/web/js/southampton.js @@ -6,6 +6,21 @@ $(function(){ + $('[placeholder]').focus(function(){ + var input = $(this); + if (input.val() == input.attr('placeholder')) { + input.val(''); + input.removeClass('placeholder'); + input.css({ 'color': '#000000' }); + } + }).blur(function(){ + var input = $(this); + if (input.val() == '' || input.val() == input.attr('placeholder')) { + input.css({ 'color': '#999999' }); + input.val(input.attr('placeholder')); + } + }).blur(); + $('#form_category').change(function(){ var category = $(this).val(); if ('Potholes' == category) { |