jquery - i get two buttons in html doc -


For this reason, in this code snippet, I get two post buttons after the last test radio button and the other very down . Even after this I check the radio button and the page refresh button is still checked. I do not know what is wrong.

  & lt; Html & gt; & Lt; Top & gt; & Lt; Script type = "text / javascript" & gt; $ (Document). $ ('($)') ($ ('$') ($ (This) .attr ('id')) {case "matup": $ ('#' mf '). Show (); break;} });}); & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div & gt; & Lt; Ul id = "physically" & gt; & Lt; Li id = "matup" & gt; Content & lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt; & Lt; Div id = "mf" & gt; & Lt; Form & gt; & Lt; Div & gt; & Lt; Label & gt; Upload content: & lt; / Labels & gt; & Lt; Input type = "radio" name "content" id = "up" value = "" /> & Lt; Label & gt; Requested content: & lt; / Labels & gt; & Lt; Input type = "radio" name "content" id = "rm" value = "" /> & Lt; / Div & gt; & Lt; Div & gt; & Lt; Input type = "radio" name = "notes" class = "matclass" value = "" gt> Label & gt; Notes & lt; / Label & gt; & Lt; Br / & gt; & Lt; Input type = "radio" name = "handout" class = "matlux" value = "" /> & Lt; Label & gt; Hand out & lt; / Labels & gt; & Lt; Br / & gt; & Lt; Input type = "radio" name = "pastexams" class = "matclass" value = "" /> & Lt; Label & gt; Previous exams & lt; / Label & gt; & Lt; Br / & gt; & Lt; / Div & gt; & Lt; Table & gt; & Lt; Tr id = "subj" & gt; & Lt; TD & gt; & Lt; Label & gt; Subject: & lt; / Labels & gt; & Lt; / TD & gt; & Lt; Td> & Lt; Input type = "text" name = "topic" id = "sub" /> gt; & Lt; / Td> & Lt; / TR & gt; & Lt; Tr id = "top" & gt; & Lt; TD & gt; & Lt; Label & gt; Subject: & lt; / Labels & gt; & Lt; / TD & gt; & Lt; Td> & Lt; Input type = "text" name = "topic" id = "tpc" /> gt; & Lt; / Td> & Lt; / TR & gt; & Lt; Tr id = "prff" & gt; & Lt; Div & gt; & Lt; TD & gt; & Lt; Label & gt; Proff: & lt; / Labels & gt; & Lt; / TD & gt; & Lt; Td> & Lt; Input type = "text" name = "proff" id = "prof" /> & Lt; / Td> & Lt; / Div & gt; & Lt; / TR & gt; & Lt; TR & gt; & Lt; Button id = "post" square = "post" & gt; Post & lt; / Button & gt; & Lt; / Tr & gt; & Lt; / Table & gt; & Lt; Div & gt; & Lt; Label & gt; Details & lt; / Labels & gt; & Lt; / Div & gt; & Lt; Div & gt; & Lt; Teddy rows = "3" cols = "40" & gt; & Lt; / Text field & gt; & Lt; / Div & gt; & Lt; / Form & gt; & Lt; Button id = "post" square = "post" & gt; Post & lt; / Button & gt; & Lt; / Div & gt;    

You have two post buttons in the markup.

  & lt; Tr & gt; & Lt; Button id = "post" square = "post" & gt; Post & lt; / Button & gt; & Lt; / Tr & gt; & Lt; / Table & gt; & Lt; Div & gt; & Lt; Label & gt; Details & lt; / Labels & gt; & Lt; / Div & gt; & Lt; Div & gt; & Lt; Teddy rows = "3" cols = "40" & gt; & Lt; / Text field & gt; & Lt; / Div & gt; & Lt; / Form & gt; & Lt; Button id = "post" square = "post" & gt; Post & lt; / Button & gt;    

Comments