Thursday, 12 September 2013

How to show just current date in calender?

How to show just current date in calender?

I have a code of calender in java script. Its in working, but I want it to
automaticaly select current date . How its Possible.
Javascript code:
<script>
$(function() {
$( "#interview_on" ).datepicker();
});
</script>
Custom Form:
<form method="POST" action="/interviewvalue/" class="form-horizontal"
id="userform" name="uform" enctype="multipart/form-data">{% csrf_token %}
<div class="control-group formSep">
<label for="u_fname" class="control-label">Interview On</label>
<div class="controls">
<input type="text" class="input-xlarge" name="interviewon"
id="interview_on" readonly="true" />
</div>
</div>
<div class="control-group">
<div class="controls">
<button class="btn btn-gebo" type="submit"
name="asubmit">Submit</button>
<input type="reset" name="reset" value="Cancel" class="btn
btn-gebo" />
</div>
</div>

No comments:

Post a Comment