javascript - Is it possible passing html elements attributes with a PHP form? -


i know if can send html elements attributes (like id, class or title) classic post form , save them in db.

i know possible ajax, saving values in variables javascript , sending them php file $.post or $.ajax

but possible normal post submit form?

thanks all

this not possible. value- , name-attribute sent server when use classic submit. there no way more attributes these two. so, forced use javascript.

the following might alternative proposed $.post-function: can adjust form , submit using javascript. so, apart 2 jquery-functions mention, there form.submit() method. have manipulate value- , name-attribute of form-elements , use .submit() send server.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -