Falc2199 wrote:
Can anyone tell me how I can make the following work...
<table>
<div id="1">
<tr><td>testing</td></tr>
</div>
<input type="button" value="test"
onClick="javascipt:removeQuestion('1','1')"> </table>
Use the validator and get your HTML straight before worrying about the
JavaScript.
http://validator.w3.org/
(1) <table> can directly contain ONLY <tbody>, <thead>, <tfoot>, or <tr> NOT
<div> or <input>
(2) Ids of elements MUST begin with a LETTER.
It would also help to know what you are trying to do, <div> elements are not
magic, its possible that you could script the row itself (depending on what
you are trying to do).
You seem to have chosen an odd forum for this question -
comp.lang.javascript would seen more suited to it (although the problem
itself (your HTML isn't HTML) is better directed to
comp.infosystems.
www.authoring.html.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is