Question
function allnumeric(inputtxt) { var numbers = /^[0-9]+$/; // For count_network if(inputtxt.count_network.value.match(numbers) && inputtxt.count_memory.value.match(numbers) && inputtxt.count_hdd.value.match(numbers)) { alert('Your Registration number has accepted....'); inputtxt.count_network.focus(); return true; }
function allnumeric(inputtxt)
{
var numbers = /^[0-9]+$/;
// For count_network
if(inputtxt.count_network.value.match(numbers) && inputtxt.count_memory.value.match(numbers) && inputtxt.count_hdd.value.match(numbers))
{
alert('Your Registration number has accepted....');
inputtxt.count_network.focus();
return true;
}
else
{
alert('Please input numeric characters only');
inputtxt.count_memory.focus();
return false;
}
}
When Validated these errors occur
Warning: The preferred Content-Type for XHTML5 is application/xhtml+xml. The Content-Type was application/octet-stream.
Error: Unnamespaced element html not allowed in this context. (Suppressing further errors from this subtree.)
From line 1, column 16; to line 3, column 6
TYPE html>↩↩↩↩ Fatal Error: name expected At line 21, column 55 match(numbers) && inputtxt.cou Please fix these errors and update it
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Answer Heres the corrected code with the errors fixed DOCTYPE html html langen head meta charsetUTF8 meta nameviewport contentwidthdevicewidth initial...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started