Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AW: [Javascript] counting selects
- From: borchers at tridem.de (Michael Borchers)
- Subject: AW: [Javascript] counting selects
- Date: Wed Sep 28 08:33:14 2005
var ordersNumRows = 0;
var inputFields = document.orders.getElementsByTagName("select")
var numTag = inputFields.length;
for (i=0; i<numTag; i++) {
if (inputFields[i].getAttribute("name").substring(0,11) == "products_id") {
ordersNumRows++;
}
}
ok, this is the way it works fine, since none of my other selects in the form
starts with "products_id".
maybe there's a possibility to do it by changing the var inputFields?!
-------------- n?chster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: http://lists.LaTech.edu/pipermail/javascript/attachments/20050928/d31d7303/attachment.html
- Prev by Date: [Javascript]Thanks thank you very much
- Next by Date: [Javascript] global vars prob
- Previous by thread: [Javascript]Thanks thank you very much
- Next by thread: [Javascript] global vars prob
- Index(es):