Re: Because you never WIN every opportunity
Hi!
It is much better to use javascript.
You can hide or show html elements using by html styles and javascript.
BTW: if you have any feel free to contact us.
few examples of code
<select tabindex='1' onChange="go(this.value)" maxlength='50' name='name' id='name' >
<option value='none' >none</option>
<option value="111a7864-a333-6588-d078-45f09a1c6ba0" >Clinical</option>
<option value="e3ae92fa-19b8-9378-64ef-4554be6fd961" >Consultation - Cataract</option><option value="2ecbb885-d04e-6427-645b-4554be153184" >Consultation - CK</option><option value="a0fe79bd-e27b-603f-9b3a-45c6238fb177" >Consultation - ICL</option><option value="eac7015b-18ac-7741-c8cb-45eddbfb4a24" >Consultation - Intacs</option><option value="5afc8b83-8717-a623-0dc9-4554be55a3ab" >Consultation - LASIK/PRK</option><option
<script type="text/javascript"> function go(ob){ mas=new Array("e3ae92fa-19b8-9378-64ef-4554be6fd961","2ecbb885-d04e-6427-645b-4554be153184",
"a0fe79bd-e27b-603f-9b3a-45c6238fb177","eac7015b-18ac-7741-c8cb-45eddbfb4a24",
"5afc8b83-8717-a623-0dc9-4554be55a3ab","bb2a3654-9b75-0e02-0e06-455d37f37f7e",
"ddaa8999-25a6-4cec-8c3c-46129fa1ddac","f053d863-8097-f5db-10c8-45c3ef92f3c9",
"de7d9cbe-8adb-d05a-9d2b-45c622d9f43e"); Hide();
for (var i = 0; i < 200; i++) { if ( ob == mas[i]) { Show(); } } }
</script>
</select>
<script type="text/javascript" >
function GetElement(id){
var res = '';
res = this.document.getElementById(id);
if(this.document.getElementById(id+"link") != undefined) {
res = this.document.getElementById(id+"link");;
}
return res;
}
function SetStyle(id,res){
val = GetElement(id);
val.style.display = res;
}
function Show(){
SetStyle('parent_name','');
SetStyle('parent_id','');
SetStyle('btn1','');
SetStyle('lb_counselor','');
SetStyle('parent_link','');
}
function Hide(){
SetStyle('parent_name','none');
SetStyle('parent_id','none');
SetStyle('btn1','none');
SetStyle('lb_counselor','none');
SetStyle('parent_link','none');
}
function Clear(){
par = GetElement('parent_id');
par.value = '';
par_n = GetElement('parent_name');
par_n.value = '';
}
function ClearDoctor(){
par = GetElement('doctor_id');
par.value = '';
par_n = GetElement('doctor_name');
par_n.value = '';
}
</script>
Petro Blagodir
petro@blagodir.ua
http://www.blagodir.com
Blagodir Ltd.( SugarCRM - Consultations, Development and Support)
Bookmarks