Need Help Please?

They have: 1 posts

Joined: Jul 2012

Hi Alll

I am new to Html.

How can I change the following html code below so that if a user ticks the first box(drill) that a message also appears in the text box below and how can I change the code so that a different message appears in the text box below when a different tool is chosen?

Any help would be really appreciated!

<HTML>
<BODY>
<H2>What tools needs fixing?</H2>
<FORM>
<INPUT
TYPE = checkbox
NAME = "check1"
VALUE = 99
onClick= "litterbox.value='new brushes or the chord is broken.'</H2">
Drill
<BR>
<INPUT
TYPE = checkbox
NAME = "check2"
Value=99
onClick = "litterbox.value ='new brushes or the chord is broken.'">
Grinder
<BR>
<INPUT
TYPE = checkbox
NAME="check3"
VALUE = 99
onCLICK ="litterbox.value= 'new brushes or the chord is broken.'">
Big Grinder
<BR>
<INPUT
TYPE=text
NAME="litterbox"
VALUE=""
SIZE=40>
</FORM>
</BODY>
</HTML>

They have: 6 posts

Joined: Apr 2015

In the form, in this line
onClick= "litterbox.value='new brushes or the chord is broken.'
Where is the starting H2 tag? You did not mentioned or wrote the H2 tag but have closing tag. Fix this line.

Albert Barkley
SEO Manager/Web Developer

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.