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
Post a Comment