[js] button area disabled in ff

Pagina: 1
Acties:

  • RSD
  • Registratie: Maart 2001
  • Laatst online: 08-02-2017
In IE werkt het wel goed, maar in FF niet, weet iemand wat het kan zijn, of kan je in FF een button array niet diabled maken?
JavaScript:
1
2
3
4
5
6
7
8
    function addradio (stationid) {
        var newcookie;
        var oldcookie = get("list-boxes");
        newcookie = oldcookie + "|" + stationid;
        set("list-boxes",newcookie,365);
        var addbutton = document.getElementById("addbutton[" + stationid + "]");
        addbutton.disabled = true;
    }

PHP:
1
2
3
4
5
6
7
8
    $stations .= "
        <li class=\"box\" id=\"$stationid\">
            <div class=\"radiobox\">
                [img]\"/images/$stationimage\"[/img]<br />
                <input type=\"button\" name=\"addbutton[$stationid]\" value=\"Nu toevoegen\" class=\"addbutton\" onclick=\"addradio('$stationid')\" $disabled />
            </div>
        </li>
    ";


Sorry ik heb het al, ik had hem niet als id gedefinieerd!

[ Voor 21% gewijzigd door RSD op 17-07-2006 14:40 ]