[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Pro/g/ramming Challenge Difficulties
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 5
Thread images: 2
File: Pro:g:ramming 3.0WithDifficulty.png (1 MB, 3840x2160) Image search: [Google]
Pro:g:ramming 3.0WithDifficulty.png
1 MB, 3840x2160
ITT: We give each of the challenges a difficulty level (easy, medium, difficult, and something harder than difficult... Need a name for that one)

I've already put difficulty levels on some of them, just need suggestions.

You can also do the challenges, if you want
>>
File: spacecat.jpg (3 KB, 106x106) Image search: [Google]
spacecat.jpg
3 KB, 106x106
This should be easy, but I'm having a hard time with it.

Create a form validation in javascript so that, whenever you select an option from the selector (example - option 2), you get an alert if a corresponding text box isn't filled out.


For example, the selector would say "How would you like us to contact you?" The options are email, phone, snail mail, whatever. If you select email, but leave the "email" form text input box empty, it prompts you.

But only if you select the email option in the selector.

This is proving to be surprisingly difficult.
>>
>>55616518
It seems you're not checking the state of the text boxes correctly... Try changing how you check the input
>>
>>55616707

>It seems you're not checking the state of the text boxes correctly... Try changing how you check the input

...what are you talking about? I didn't even post up any code.

My problem with the issue is not "checking the input" or getting javascript to call an alert if the text box is empty. My problem is getting both of these both to happen at once. For whatever reason the && or + operator isn't working and I'm not sure why.
>>
>>55616465
rolling for something I'll never do
Thread replies: 5
Thread images: 2

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.