bedum Posted June 12, 2012 Share Posted June 12, 2012 Hi i added a datepicker in the Ps1.4.4.1 shop at the shipping step, and wanted to merge the date value into the message textarea box on submit() by append to the last line. The below is what i have. Everything is fine, the alert is showing out the textarea value with my desired date. However, the date is failed to save into the database. I can only see the textarea message in my admin page without the date showing.. Can you please advise? <script>{literal} function submitForm(action) { $message = $("#message").val() + " Date : " + $("#datepicker").val(); alert($message); }{/literal} </script> <h3>Gift Message</h3> <div id="ordermsg" style="margin-top:-20px"> <p>{l s='If you want to leave message to your order, please write it below.'}</p> <p class="textarea"><textarea cols="60" rows="3" id="message" name="message">{$oldMessage}</textarea></p> </div> <input type="submit" name="processCarrier" value="{l s='Next'} »" class="button right" onclick="submitForm()" /> Link to comment Share on other sites More sharing options...
bedum Posted June 13, 2012 Author Share Posted June 13, 2012 can somebody advise ? Link to comment Share on other sites More sharing options...
bedum Posted June 13, 2012 Author Share Posted June 13, 2012 I am surprised to see that no body is attending to my issues in this forum. Link to comment Share on other sites More sharing options...
Recommended Posts