Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > How to have a nested dynamic checkbox inside my dynamic form.

Reply
Thread Tools

How to have a nested dynamic checkbox inside my dynamic form.

 
 
pizzy
Guest
Posts: n/a
 
      03-23-2005
Scripting Friends,

I am wondering if it's possible to nest a dynamic checkbox inside my
dynamic form.


READ: THE FORM BELOW IS A GENERIC FORM THAT CALLS THE FUNCTION
________
enter # of input0A |_______| [submit] [reset]


------------------------------**-------------------------
READ: THE FORM BELOW IS AFTER 2 IS ENTERED INTO THE input ABOVE


________
input1A |_______| [] check here to add input2A and input3A
________
input1B |_______| [] check here to add input2B and input3B


[submit] [reset]


------------------------------**-------------------------
READ: THE FORM BELOW IS THE RESULTS OF CLICKING THE FIRST
CHECKBOX ABOVE
________ ________ ________
input1A |_______| [] input2A |_______| input3A |_______|
________
input1B |_______| [] check here to add input2B and input3B


[submit] [reset]


function showInputs() {
var howMany = document.form1.number_of_field*s.value;
inter = "'";
data = "";
if (howMany < 16 && howMany > -1) {
for (i=1; i <= howMany; i++) {
data = data + " <input type='text' size=10 name=" + inter+
"inputMe[]" + i + inter + "'>" + " <input type='checkbox'
onClick='showInputs2();' id='tag_1' name='checkMe'" + i + "'><br>";
}
field1.innerHTML = data;
}else {
window.alert("Please select up to 15 entries.");
}
}
//This all goes into a div tag. but I want the check boxes in
// here to run show and hide some more input boxes.
<form>
<div id="field1" style="possitive:absolute"></d*iv>
</form>


Anyone that can help me understand how to do this will be greatly
appreciated. Thanks for checking it out!

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
A nested dynamic checkbox inside my dynamic form. pizzy Javascript 5 04-12-2005 02:55 PM
Dynamic temp. datagrid col.gen. -Session access inside a class inside a UserCtrl Andy Eshtry ASP .Net Building Controls 0 03-01-2004 11:48 PM
Dynamic temp. datagrid col.gen. -Session access inside a class inside a UserCtrl Andy Eshtry ASP .Net 0 03-01-2004 11:48 PM



Advertisments