Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by MaRiJaWaNa

  1. MaRiJaWaNa

    Need help with trying to find an element

    var menu; try { menu = document.getElementById("awmAnchor-menu"); } catch(err) { try { menu = document.getElementById("nomenu"); } catch (err) { //Do Nothing } } Doesn't seem to work any idea's?
  2. MaRiJaWaNa

    Need help with trying to find an element

    Also is this how you change a class? menu.className = "awmAnchor-menu";
  3. MaRiJaWaNa

    Need help with trying to find an element

    Alright i got this code try { var menu = document.getElementbyID("awmAnchor-menu"); } catch(err) { try { var menu = document.getElementbyID("nomenu"); } catch (err) { //Do Nothing } } and the reason it tries both is because the id could be both is this wrong?

Part and Inventory Search

Back
Top