Login Login
MORE

WIDGETS

Widgets

Wanted articles
Who is online?
Article tools

JQuery:Oggetti del DOM

From Aino Wiki

Jump to: navigation, search

Ricerche

Si effettuano con l'operatore $

Ricerche per ID

Nascondere HTML

Ricerca di una tabella e in funzione di un valore visualizzare o nascondere la tabella.
<table id="tbBowThruster3" cellspacing="0" cellpadding="0" border="0" style="position:relative;" class="tableData1">
Notare che il codice javascript che segue e sul precedente HTML, $('#tbBowThruster3').hide(); rimuove l'HTML e non è una questione di stile ad es. con un style="visibility: hidden;".
    var nrThruster = 0;
    if (strNrThruster != undefined
        && strNrThruster != null
        && strNrThruster != "0")
    {
        nrThruster = parseInt(strNrThruster, 10);
    }
    if (nrThruster == 3)
    {
        $('#tbBowThruster3').show();
    }
    else {
        $('#tbBowThruster3').hide();
    }


Mappa e Link


JQuery

Author