From 600316a94a7e40c5fef364d6f98abc3e509131ad Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Tue, 13 Mar 2012 11:36:26 +0100 Subject: Initial commit --- jquery/bjack.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 jquery/bjack.js (limited to 'jquery/bjack.js') diff --git a/jquery/bjack.js b/jquery/bjack.js new file mode 100644 index 0000000..fbc54ec --- /dev/null +++ b/jquery/bjack.js @@ -0,0 +1,24 @@ +$(document).ready(function() { + + /* + * Clear values of name and password on click + */ + + $("#name").click(function() { + if ($(this).val() == "name") { + $(this).removeAttr("value"); + }; + }); + + $("#pass").click(function() { + if ($(this).val() == "password") { + $(this).removeAttr("value"); + $(this).prop({"type": "password"}); + }; + }); + + $("select").change(function() { + continue; + }); + +}); -- cgit v1.2.3