Hey i've been developing a javascript test and am stuck on one little thing. There is a question that asks for "What does php stand for?" and the answer is "PHP:Hypertext Preprocessor" but it also stands for "Parsing Hypertext Preprocessor".
My question is how would i code it so that it allows both those answers and the user can type the answer in both lower and uppercase. Heres the code,
HTML Code:
Javascript:
Thanks for any help.
My question is how would i code it so that it allows both those answers and the user can type the answer in both lower and uppercase. Heres the code,
HTML Code:
Code:
<div id="divqu3">
3. What does PHP stand for?
<br />
<input type="text" name="txtQu3">
</div>
Code:
//mark question 3
if (document.frmTest.txtQu3.value == "PHP: Hypertext Preprocessor")
{
yourmark += 1;
}