summaryrefslogtreecommitdiffstats
path: root/jquery/bjack.js
diff options
context:
space:
mode:
authorStefan Ritter <xeno@thehappy.de>2012-03-13 11:36:26 +0100
committerStefan Ritter <xeno@thehappy.de>2012-03-13 11:36:26 +0100
commit600316a94a7e40c5fef364d6f98abc3e509131ad (patch)
tree4d35ea4627d32bf1c1d6acfdb4799eae174e54a2 /jquery/bjack.js
Initial commit
Diffstat (limited to 'jquery/bjack.js')
-rw-r--r--jquery/bjack.js24
1 files changed, 24 insertions, 0 deletions
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;
+ });
+
+});