Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $(function() {
- $( ".datepicker" ).datepicker({ });
- $( ".datepicker2" ).datepicker({ });
- });
- </script>
- <script>
- $('input.datepicker').keyup(function(){
- var prefix = 'prefix_';
- if(!(this.value.match('^prefix_'))){
- this.value = prefix;
- }
- });
- $('input.datepicker').blur(function(){
- var prefix = 'prefix_';
- if(!(this.value.match('^prefix_'))){
- this.value = prefix;
- }
- });
- </script>
Add Comment
Please, Sign In to add comment