15,917,005 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 14105304 (Top 13 by date)
Member 14105304
11-Mar-19 15:01pm
View
comment:
for e.g : after 3 of \w would come 2 nums/digis, so after the D* (which mean the text before the nums) must come 2 nums.
Member 14105304
11-Mar-19 5:52am
View
so the '?' just dismiss the behind word of it and then checks?
Member 14105304
11-Mar-19 4:29am
View
ohhh.. it starts from 't' till 'i', i thought i is the flag..
gotch'a! thnx a lot! =]
Member 14105304
11-Mar-19 3:25am
View
i mean why it did not give "titanic", c is included between a-z..?
Member 14105304
14-Feb-19 6:26am
View
Some beneficial project, time and paper saver :)
Member 14105304
14-Feb-19 4:00am
View
Army's computers.. They are secured.
Member 14105304
14-Feb-19 3:35am
View
there's must be a way. I want to storage written text and keep it for future usage, even If I'll exit the website.
Member 14105304
14-Feb-19 3:29am
View
How am I connecting to that indexedDB?
Member 14105304
14-Feb-19 3:28am
View
I have nothing. It's an army's private isolated computers, nothing is allowed to enter, even the cheapest and undanger USB. So what shall I do?
Member 14105304
4-Jan-19 3:35am
View
that's working!! :O
but i have stucked in another problem.
I want to make an random number(which i already did) and pass it through all the ".list" classes, and if they match, and ill click on the matched one: ill win.
kind of like that.
but the code returns the element, not an numeric number of the array.
and cuz of that i can't access these buttons.
the code:
<!DOCTYPE html>
CLICK
CLICK
CLICK
var lists = document.querySelectorAll(".list");
console.log(lists); // [0, 1, 2]
var pickAnswer = Math.floor(Math.random() *3);
console.log(pickAnswer); // ???
lists[0].addEventListener("click", check);
lists[1].addEventListener("click", check);
lists[2].addEventListener("click", check);
function check(){
console.log(this);
}
Member 14105304
3-Jan-19 2:17am
View
Is it the only way? I hate the for each method..
Member 14105304
2-Jan-19 22:10pm
View
i have added the first sentense. but these's another problem.
before the page is being loaded and before the buttons clicked, the function is already running:
<!DOCTYPE html>
CLICK
CLICK
CLICK
var lists = document.querySelectorAll(".list");
console.log(lists); // [0, 1, 2]
var pickAnswer = Math.floor(Math.random() *3);
console.log(pickAnswer); // ???
lists[0].addEventListener("click", check());
lists[1].addEventListener("click", check());
lists[2].addEventListener("click", check());
function check(){
alert("the button is CLICKED!");
}
Member 14105304
2-Jan-19 17:38pm
View
Thank you a lot! I hard stucked at this one. I'm newbie in programming and have not learnt the "let" key.
I wanted to reply back at the time but fell asleep lol
Show More