Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi all,
Vanilla are planning an update to the site on April 24th (next Wednesday). It is a major PHP8 update which is expected to boost performance across the site. The site will be down from 7pm and it is expected to take about an hour to complete. We appreciate your patience during the update.
Thanks all.

JavaScript function

Options
  • 09-08-2007 10:10am
    #1
    Registered Users Posts: 1,305 ✭✭✭


    hey.

    just wondering if it is possible to use a JavaScript function to find <td>'s within a HTML page that conatin cetain input types (eg, checkboxes).

    any help/feedback/suggestions will be helpful

    Thanks


Comments

  • Registered Users Posts: 7,468 ✭✭✭Evil Phil


    You could use document.getElementsByTagName() to get all the <TD> tags in your document. Then query each of these to get the input types.


  • Registered Users Posts: 1,305 ✭✭✭jobonar


    Evil Phil wrote:
    You could use document.getElementsByTagName() to get all the <TD> tags in your document. Then query each of these to get the input types.

    Thanks for the reply

    i'm using the getElementsByTagName() to get all the tag names already but how would i go about querying the input types within the td?

    i would really appriciate your help, its driving me insane!!!!


  • Registered Users Posts: 1,305 ✭✭✭jobonar


    I got it working!

    Thanks Phil


Advertisement