This has got me in a pickle, though I'm sure it's probably fairly easy.
works but I've no idea how to get it into set_value().
The following is the code I'm working with (obviously wrong but you get the idea):
<label for="appt_start">Start Time</label> <?php echo form_error('appt_start'); ?> <br /> <input id="appt_start" type="text" name="appt_start" maxlength="12" value="<?php $time = "<script>document.write('parent.location.hash'); </script>"; set_value('appt_start', $time) ;?>" />
You can use jQuery to set it to an input:
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki