please i'm asp.vb developer , new jquery mobile. have page want insert data ms access database using jquery mobile. please can 1 of help? here html:
<form id="form1" name="form1" method="post" action="sources/quest_rev.asp"> <table width="525" border="0" cellpadding="3" cellspacing="3"> <tr> <td width="59"><strong>reply</strong></td> <td width="445"><textarea name="reply" cols="60" id="reply"></textarea></td> </tr> <tr> <td><strong>name</strong></td> <td><input type="text" name="uname" id="uname" /></td> </tr> <tr> <td><strong>number</strong></td> <td><input type="text" name="unumber" id="unumber" /></td> </tr> <tr> <td><strong>location</strong></td> <td><label for="location"></label> <input type="text" name="location" id="location" /></td> </tr> <tr> <td> </td> <td><input type="submit" name="button" id="button" value=" send " /></td> </tr> </table> </form>
when form submitted, need send ajax request server, server should save form data ms access database.
jquery cannot insert data database
jquery(function($){ $('#form1').submit(function(){ $.ajax({ url: '<url>', type: 'post', data: $(this).serialize() }).done(function(data){ //do }); return false; }) })
Comments
Post a Comment