datepicker field default date
Hi Jason
How would I get this filed to defaul to 'todays' date but allow the user to use the datepicker to choose an alternative should they wish to.
<div class="lineGroup">
<label for="BlogDate" class="sublabel" > Date:</label>
<div class="errorGroup"> <span id="BlogDate_Spry"> <span>
<input id="BlogDate" name="BlogDate" type="text" value="<?php echo((isset($_GET["invalid"])?ValidatedField("blogupdate","BlogDate"):"".(($row_WADAblog["BlogDate"])?date("d-m-Y",strtotime($row_WADAblog["BlogDate"])):"")."")); ?>" class="formTextfield_Medium" tabindex="2" onBlur="hideServerError('BlogDate_ServerError');" style="width:150px; height:35px; font-size:16px;">
<?php
if (ValidatedField('blogupdate','blogupdate')) {
if ((strpos((",".ValidatedField("blogupdate","blogupdate").","), "," . "1" . ",") !== false || "1" == "")) {
if (!(false)) {
?>
<span class="serverInvalidState" id="BlogDate_ServerError">Please enter a value.</span>
<?php //WAFV_Conditional blog_update.php blogupdate(1:)
}
}
}?>
<span class="textfieldInvalidFormatMsg">Invalid format.</span><span class="textfieldRequiredMsg">Please enter a value.</span> </span> </span> </div>
</div>
Cheers
Jamie