Forums

Checkbox and DIV issue

tekoteo 14 Sep, 2009
Hi All,
I have a problem if I put checkboxes into 2 colums.....

if my checkbox are in 2 colums like:

		<div class="chkopz">
			<div id="chkopz2">
				<input value="check 1" title="Dato richiesto" class="radio validate-one-required" id="check00" name="check0[]" type="checkbox" />
				<label for="check00" class="check_label">Sviluppo web</label>
				<br />
				<input value="check 2" title="Dato richiesto" class="radio validate-one-required" id="check01" name="check0[]" type="checkbox" />
				<label for="check01" class="check_label">Manutenzione servizi web</label>
				<br />
				<input value="check 3" title="Dato richiesto" class="radio validate-one-required" id="check02" name="check0[]" type="checkbox" />
				<label for="check02" class="check_label">Ottimizzazione SEO</label>
				<br />
				<input value="check 4" title="Dato richiesto" class="radio validate-one-required" id="check03" name="check0[]" type="checkbox" />
				<label for="check03" class="check_label">Hosting</label>
				<br />
				<input value="check 5" title="Dato richiesto" class="radio validate-one-required" id="check04" name="check0[]" type="checkbox" />
				<label for="check04" class="check_label">Housing</label>
	     			<br />
				<input value="check 6" title="Dato richiesto" class="radio validate-one-required" id="check05" name="check0[]" type="checkbox" />
				<label for="check05" class="check_label">Server dedicati</label>  
   
			</div>
			<div id="chkopz2">

				<input value="check 7" title="Dato richiesto" class="radio validate-one-required" id="check06" name="check0[]" type="checkbox" />
				<label for="check06" class="check_label">Spazi FTP</label>
				<br />
				<input value="check 8" title="Dato richiesto" class="radio validate-one-required" id="check07" name="check0[]" type="checkbox" />
				<label for="check07" class="check_label">Spazi database</label>
				<br />
				<input value="check 9" title="Dato richiesto" class="radio validate-one-required" id="check08" name="check0[]" type="checkbox" />
				<label for="check08" class="check_label">Studio d'immagine</label>
				<br />
				<input value="check 10" title="Dato richiesto" class="radio validate-one-required" id="check09" name="check0[]" type="checkbox" />
				<label for="check09" class="check_label">Attività sistemistiche</label>
				<br />
				<input value="check 11" title="Dato richiesto" class="radio validate-one-required" id="check10" name="check0[]" type="checkbox" />
				<label for="check10" class="check_label">Piattaforma d'assistenza</label>
				<br />
				<input value="check 12" title="Dato richiesto" class="radio validate-one-required" id="check11" name="check0[]" type="checkbox" />
				<label for="check11" class="check_label">Altro</label>
			</div>
		</div>


validation has some problem.... every colum is "indipendent"


If i remove;

</div>
<div id="chkopz2">


validation works fine....

Tnx for help
GreyHead 14 Sep, 2009
Hi tekoteo,

IIRC the validation looks for the parent tag to check which inputs are in the group. There may be a better way but that is how it is working right now :-(

Bob
tekoteo 14 Sep, 2009
Tnx for reply...

mmmmmm ...you know a way to organize check into 2 columns??? I don't find a solution...
GreyHead 14 Sep, 2009
Hi teketeo,

I think that I wrote a custom validation that might work - maybe a year ago here in the forums. Possibly that could be adapted to the new validaion code.

Otherwise you could use width & float to arrange the columns inside a single div.

Bob
This topic is locked and no more replies can be posted.