v2.5.2
Giriş yap

javascript onclick kullanımı

wwx
438 defa görüntülendi

Tekbir onclick ile 2 yeri gizleyip göstermeye çalışıyorum ama tek birini görüyor bunu nası çözerim

 <div class="col-md-6">
        <div class="single-form">
		<label><?=@$dil['txt96'];?></label>
        </div>
		<input type="radio" name="odeme"   onclick="goster()"  value="<?=@$dil['txt94'];?>" />&nbsp;<?=@$dil['txt94'];?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<input type="radio" name="odeme"   onclick="goster()"  value="<?=@$dil['txt95'];?>" />&nbsp;<?=@$dil['txt95'];?>
 </div>
 
 <div class="col-md-6" id="mySelect" style="display: none;" >
       <div class="single-form">
         <input type="text" name="sigordaid" placeholder="<?=@$dil['txt91'];?>">
         <span class="icons"><i class="fa fa-list-ol"></i></span>
       </div>
</div>
<div id="mySelect" style="display: none;"  class="single-form">
                                     <select   name="sigorta">
                                         <option value="<?=@$dil['txt110'];?>"><?=@$dil['txt110'];?></option>
		<option value="<?=@$dil['txt97'];?>"><?=@$dil['txt97'];?></option>
                                            <option value="<?=@$dil['txt98'];?>"><?=@$dil['txt98'];?></option>
			 <option value="<?=@$dil['txt99'];?>"><?=@$dil['txt99'];?></option>
			 <option value="<?=@$dil['txt100'];?>"><?=@$dil['txt100'];?></option>
			   <option value="<?=@$dil['txt101'];?>"><?=@$dil['txt101'];?></option>
			    <option value="<?=@$dil['txt102'];?>"><?=@$dil['txt102'];?></option>
				 <option value="<?=@$dil['txt103'];?>"><?=@$dil['txt103'];?></option>
		<option value="<?=@$dil['txt104'];?>"><?=@$dil['txt104'];?></option>
		<option value="<?=@$dil['txt105'];?>"><?=@$dil['txt105'];?></option>
                                            <option value="<?=@$dil['txt106'];?>"><?=@$dil['txt106'];?></option>
			 <option value="<?=@$dil['txt107'];?>"><?=@$dil['txt107'];?></option>
			 <option value="<?=@$dil['txt108'];?>"><?=@$dil['txt108'];?></option>
			   <option value="<?=@$dil['txt109'];?>"><?=@$dil['txt109'];?></option>
         </select>
    </div>
   function goster(){
        $("#mySelect").toggle();
    }
webdoc
895 gün önce

@wwx ikisine aynı değeri ver