summaryrefslogtreecommitdiffstats
path: root/jquery/bjack.js
diff options
context:
space:
mode:
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;
+ });
+
+});