![]() |
| |||||||
![]() | « Previous Thread | Next Thread » |
| | LinkBack | Thread Tools | Display Modes |
| ||||
| Quote:
Quote:
|
| Sponsored Links |
| |||
| Hi, I am using this function Code: function calloptionpay()
{
var sel_payway = document.getElementById("payway")
var getpayway = sel_payway.options[sel_payway.selectedIndex].text
if(getpayway=="Cash")
{
changeDiv('reservecash','block');
changeDiv('reservecheck','none');
changeDiv('reservecredit','none');
}
else if (getpayway=="Check")
{
changeDiv('reservecash','none');
changeDiv('reservecheck','block');
changeDiv('reservecredit','none');
}
else if (getpayway=="Credit Card")
{
changeDiv('reservecash','none');
changeDiv('reservecheck','none');
changeDiv('reservecredit','block');
}
var creditcardflag
creditcardflag="Yes"
document.getElementById("creditcardflag").value = creditcardflag;
}
function changeDiv(the_div,the_change)
{
document.getElementById('the_div').style.display=the_change;
}
it works no errors but the divs dont change |
| ||||
| This line:- Code: document.getElementById('the_div').style.display=the_change;
Code: document.getElementById(the_div).style.display=the_change; Last edited by richyrich; July 1st, 2008 at 04:50 PM. |
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| display problem with drop downs | todd2006 | JavaScript Programming | 3 | May 5th, 2008 05:31 PM |
| drop down problem | todd2006 | .Net Development | 2 | April 23rd, 2008 11:37 AM |
| Sponsored Links |
| ASP.NET Resource Index a directory of ASP.NET tutorials, applications, scripts, assemblies and articles for the novice to professional developer. Free Web Directory Including Chats and Forums Resources, Offer automatic, instant and free directory submissions. | URLZ Web Directory URLZ Web Directory Free Web Directory - Add Your Link The Little Web Directory | Free Web Directory Pegasus free web directory is a free directory organised by categories. Web Directory & SEO Services dirroot web directory |