-
Notifications
You must be signed in to change notification settings - Fork 24
Home
mudge edited this page Sep 12, 2010
·
3 revisions
The standard plugin itself doesn’t support this functionality but code has been contributed in the past that allows this kind of usage (the second solution is likely to be the better one as the first relies on changing the type
attribute of a password field which is forbidden in a lot of browsers).
If you’re unfamiliar with jQuery then the basic usage is as follows:
<form action="/user">
<p><input id="name" name="name" /></p>
<p><input type="submit" value="Save" /></p>
</form>
<script type="text/javascript" src="/javascripts/jquery.js"></script>
<script type="text/javascript" src="/javascripts/jquery.example.min.js"></script>
<script type="text/javascript">
$(function() {
$('#name').example("Joe Bloggs");
});
</script>