i have a form in my website where there is an input field which can be single or multiple according to the users choice, I have used javascript to do it, the code is like below: