Is there a way to check the parameter if its empty or not before submitting?
<form method="GET">
<input name="param1" value="test"/>
<input name="param2" value=""/>
<input type="submit" name="" id="search-submit" class="button" value="Submit">
</form>
If i have a form something like this. the param2 is empty so when I press submit, it look like this
link.com?param1=test¶m2=
so is it possible to attain something like this that when a param is empty. it should not be included.
like
link.com?param1=test
since the param2 is empty
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…