/    Sign up×
Community /Pin to ProfileBookmark

script to check response

I am new to this list so apologize for asking something that may be old hat to all of you. I need to check a typed in response and either accept it or reject it. I think I have done it before, but cannot remember how it was done. I use Java scripts but do not write them.
Thank you.

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@JonaNov 03.2003 — [font=arial][color=maroon]What exactly do you mean? Using artificial intelligence to respond to a block of text someone enters into a text field, or check to see if some pattern or combination thereof exists and respond according to whether or not it was found?[/color][/font]

[b][J]ona[/b]
Copy linkTweet thisAlerts:
@handlinauthorNov 03.2003 — I want students to identify a muscle or organ and enter the correctly spelled name. It must be exactly right or it is wrong. I am not scoring, just responding.
Copy linkTweet thisAlerts:
@JonaNov 03.2003 — [font=monospace]

<form action="" name="frm"><div>

<input type="text" name="muscle"><br>

<input type="button" onclick="if(this.form.muscle.value != 'the exact name of the muscle'){ alert('Incorrect'); } else {alert('Correct'); }" value="Test">

</div></form>

[/font]

[b][J]ona[/b]
Copy linkTweet thisAlerts:
@fredmvNov 03.2003 — &lt;input type="text" onblur="alert((this.value.toLowerCase() == 'muscle') ? 'Correct.' : 'Incorrect.');" /&gt;
Copy linkTweet thisAlerts:
@handlinauthorNov 03.2003 — That looks like it will do what I need. I will insert it tomorrow and see what I can do with it. I'm sure you know how much time and effort you ahve saved me! (Plus the greay hairs...) Thank you. I will report back.
×

Success!

Help @handlin spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...