How can I remove empty fields from my form in the querystring?

后端 未结 6 1571
滥情空心
滥情空心 2020-12-16 11:17

I have a simple form with four inputs. When I submit my form, I want to use the GET http method.

For the example :

aaa : foo
bbb : ____
ccc : bar
ffffd         


        
6条回答
  •  心在旅途
    2020-12-16 11:30

    I love the idea given by RaphDG

    But I modified the code a little. I just use the disabled property rather removing the field. Here is the changed code:

    Thanks once again for the idea RaphDG (y)

提交回复
热议问题