- 0
[Javascript] Combine 2 form fields into one.
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Posts
-
By leonsk29 · Posted
His true motives are clear: to make more money by taking advantage of his position and fame, and to feel big and important as he has always wanted. He's turning the US President position into his own personal brand to sell smoke and ###### products and services. The goal remains: money. -
By TarasBuria · Posted
Crazy Taxi, Sonic CD, and other classic Sega games are now free on mobile devices by Taras Buria SEGA is discontinuing some of its classic games available on mobile devices in the App Store and Google Play Store. Users noticed that upon launch, some of the classic games that were previously ported to mobile devices via the SEGA Forever program (discontinued in 2023) now display a discontinuation message. However, the good news is that all those games are now available for free, so grab them while you can. SEGA has not made any official announcement yet, minus the in-game message, of course, so exact details remain unknown. There is no information on whether the publisher plans to remove those games from mobile stores. Still, it says that you can continue playing them offline: "Support for this game will be discontinued, but you can continue playing offline! If you’d like to learn more about great SEGA games to play, please click the link below." Should SEGA remove the games from stores, installed games will continue working without issues. With that said, SEGA is no stranger to delisting its games, so chances are that now-unsupported games will meet the same fate. Here are the games that previously cost $2 (or required in-app purchases) and are now available for free, presumably for a limited time. Grab them using the links below: Crazy Taxi Classic - App Store | Google Play Store Golden Axe Classics - App Store | Google Play Store Shining Force Classics - App Store | Google Play Store Sonic CD Classic - App Store | Google Play Store Sonic the Hedgehog 4 Ep.II - App Store | Google Play Store Streets of Rage 2 Classic - App Store | Google Play Store Super Monkey Ball: Sakura Ed. - App Store | Google Play Store Virtual Tennis Challenge - App Store | Google Play Store Source: Android Authority -
By JayZJay · Posted
Pick your administration and they all have their share of nonsense. If you look much at all, you can find crap and problems with all of them going back to the beginning. I think there are a lot people in Washington, D.C. right now or have been over the years that have been "domestic terrorists" and should have been in prison. Too many examples to even start naming here. I personally don't know what to think of Trump at this point as far his true motives, but I know he makes himself look bad and one of the best examples is this waffling around regarding TikTok. -
By binaryzero · Posted
Sayan’s trying to be creative and find ways to link previous articles together, it’s just word spaghetti… -
By Good Bot, Bad Bot · Posted
I am waiting for it to hit Fedora in a day or two here.
-
-
Recent Achievements
-
JLP earned a badge
Reacting Well
-
Rhydderch earned a badge
Week One Done
-
dismuter went up a rank
Experienced
-
mevinyavin earned a badge
One Month Later
-
rozermack875 earned a badge
Week One Done
-
-
Popular Contributors
-
Tell a friend
Question
Axel
I've got a credit card form and on submission it requires that the expiry date is submitted from a single string as mmyy. Instead, the form is mm and yy in separate submission boxes.
I figured it would be possible to take the two value's and combine them by sitcking them into a hidden field.
I found a script online and due to my very limited knowledge of javascript I wouldn't actually know what to do with this and it looks looks somewhat incomplete:
I'm completely full of cold at the moment so my brains not firing on all thrusters.
Would this require any library like jquery to work?
If there's a way to do this without javascript that would be even better. Thing is as the forms being submitted via a thirdparty api I don't have the luxury of combining them via PHP at form submission.
Appreciate any help.
Many thanks.
Alex
Link to comment
https://www.neowin.net/forum/topic/1133384-javascript-combine-2-form-fields-into-one/Share on other sites
8 answers to this question
Recommended Posts