+ 1

Can i get input data form , using java script without put any function in html form

i want to save my data without put any function name in the html form so i need method or exmple if it available :) ?

8th Apr 2017, 5:29 PM
aladdin xclay
3 Answers
+ 7
Using 'ajax' is using JS ^^ So effectively, you can use JS and get values of html form without "put any function in html form"... but putting functions elsewhere ( in a linked script file if you want separate html from js ) anyway :P You can also define events without "put any functions" in html script, but set them at run time... However, what's the interest to avoid functions inlined in html element? My previous answer was a solution to avoid JS in general ( purpose: be functionnal even if user have disabled JS, or don't have it -- rarely, but some light/text browsers can be in this case )... but if you want use JS, I don't understant why you don't want to "puy any function in html form :P ?
12th Apr 2017, 3:41 PM
visph
visph - avatar
+ 7
Using a "submit" type <input> button let the user send the data form content to the specified url in attributes of his parent <form> element without using any JS on client/user side... But you need to use some language on server side to save them anyway ^^
8th Apr 2017, 6:41 PM
visph
visph - avatar
0
so when i searched in google i think you need to use ajax to do this without put any function name in button
12th Apr 2017, 12:46 PM
aladdin xclay