Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

test

  • Loading branch information...
commit 9073ad40debb7d81d9e8a8ea3c8e20794730a792 1 parent e0aaf92
@danielstocks danielstocks authored
Showing with 35 additions and 1 deletion.
  1. +5 −1 README.rst
  2. +30 −0 tests/env-JS.html
View
6 README.rst
@@ -34,4 +34,8 @@ Credit
======
Copyright 2010, Daniel Stocks ( http://webcloud.se )
-Thanks to Nikita Vasilyev ( http://elv1s.ru/ ) for feedback and contribution.
+Thanks to Nikita Vasilyev ( http://elv1s.ru/ ) for feedback and contribution.
+
+TODO
+====
+- Clean up and make proper test cases.
View
30 tests/env-JS.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset=utf-8>
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
+ <script src="../jquery.placeholder.js"></script>
+ <title>jQuery-Placeholder</title>
+ <style>
+ body {font-family: arial, sans-serif;}
+ input {padding:4px; width:255px; font-family: arial, sans-serif; font-size: 12px;}
+ .placeholder {color: #aaa;}
+ </style>
+</head>
+<body>
+ <h1>jQuery-Placeholder</h1>
+ <p>env-JS test. Try setting the values with javascript and then submitting the form.</p>
+ <form action="">
+ <p>
+ <input id="test-field" type="text" placeholder="test field" name="test-field">
+ </p>
+ <p>
+ <button type="submit">Go</button>
+ </p>
+ </form>
+<script>
+ $('input[placeholder]').placeholder();
+ $("#test-field").val("this was set with JavaScript");
+</script>
+</body>
+</html>
Please sign in to comment.
Something went wrong with that request. Please try again.