i'm running little problem on submitting input text-field should have value set javascript script.
this code form:
<html> <head><title></title> <script src="http://cdn.jquerytools.org/1.2.7/full/jquery.tools.min.js"></script> <link rel="stylesheet" type="text/css" href="stylingindex.css" /> </head> <body> <div class="main"> <table border="0"> <form method="post" action="begin.php?id=createfile"> <tr><td>date 1</td> <td><input type="date" name="date1"></td></tr> <tr><td>date 2</td> <td><input type="date" name="date2"></td></tr> <tr><td><input type="submit" name="submit" value="go"></td></tr> </form> </table> </div> <script> $(":date").dateinput(); </script> </body> </html> whenever check $_post value empty. (the createfile.php handling perfectly, that's not problem), think problem in way treat javascript don't know i'm doing wrong.
it looks it's not assigning value selected (the date) script, although appear client side, doesn't process after submitting. hope can me.
you have tidying on markup. notice closing of input nodes. try me? putting script block top , using jquery domready function?
<head> <script> $(function() { $(':date').dateinput(); }); </script> </head> <body> <div class="main"> <table border="0"> <form method="post" action="begin.php?id=createfile"> <tr> <td>date 1</td> <td> <input type="date" name="date1" /> </td> </tr> <tr> <td>date 2</td> <td> <input type="date" name="date2" /> </td> </tr> <tr> <td> <input type="submit" name="submit" value="go" /> </td> </tr> </form> </table> </div>
Comments
Post a Comment