[RESOLVED] Show YYYY-MM-DD in show_search_form.inc.php
Posted: Thu Oct 15, 2009 11:02 am
Hi, within the admin section I need to have both of the following sections of code together in the same part so that when you click the textfield it not only selects the correct radio button but also clears the textfield of the default value -
This is what I have at the momentBut I need to have this (which is the original code): to also work with this (which shows yyyy-mm-dd as the default value until the user clicks the textfield then it removes it):
At the moment I can only use one or the other but the final result needs to be this and this combined if that makes sense....
Please, any help would be great.
This is what I have at the moment
Code: Select all
<input type="text" name="dt" value="<?php echo $value; ?>" size="35" maxlength="10" onfocus="Javascript:document.findby.what[2].checked=true;" />
Code: Select all
onfocus="Javascript:document.findby.what[2].checked=true;"
Code: Select all
onfocus="if (this.value=='<?php echo $value; ?>'){this.value='';};return false;" onblur="if (this.value==''){this.value='<?php echo $value; ?>';return false;}"
Code: Select all
<input type="text" name="dt" value="<?php echo $value; ?>" size="35" maxlength="10" onfocus="Javascript:document.findby.what[2].checked=true;" />
Code: Select all
<input type="text" name="dt" value="<?php echo $value; ?>" size="35" maxlength="10" onfocus="Javascript:document.findby.what[2].checked=true;" onfocus="if (this.value=='<?php echo $value; ?>'){this.value='';};return false;" onblur="if (this.value==''){this.value='<?php echo $value; ?>';return false;}" />
Please, any help would be great.