Skip to content

Instantly share code, notes, and snippets.

View dgbrahle's full-sized avatar

David Brahler dgbrahle

View GitHub Profile
@dgbrahle
dgbrahle / gist:466737
Created July 7, 2010 14:09
Javascript Inputs: Number fix
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<script language="javascript" type="text/javascript">
//<![CDATA[
function removeAllAnswers(){
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<script language="javascript" type="text/javascript">
function showanswer()
{
if (!document.html)
return
document.html.num_answers.src=
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<script language="javascript" type="text/javascript">
function getCount(){
removeAllAnswers();
var answerCount = document.getElementById("jsSelecter").value;
for (var i=0; i < answerCount; i++){