Skip to main content
Inspiring
February 9, 2009
Question

Validate Unkown Input form Element

  • February 9, 2009
  • 1 reply
  • 284 views
Below is an unput form that get generated based on total number of rows.
What I am trying to accomplich now is to set focuc() on the Input form when validation fails. Since I really do not know the name of this unput form how can I accomplish this with js? See below

As of now validation works in onblur()
    This topic has been closed for replies.

    1 reply

    Inspiring
    February 9, 2009
    eziokolo wrote:
    > Below is an unput form that get generated based on total number of rows.
    > What I am trying to accomplich now is to set focuc() on the Input form when
    > validation fails. Since I really do not know the name of this unput form how
    > can I accomplish this with js? See below
    >
    > As of now validation works in onblur()
    >
    > <input type="Text" name="denom_#qryEntryGrid.indicatorvalueid#"
    > onblur="this.value=Tex(this.value);" value="#(qryE.Denomr*1)#" size="3"
    > maxlength="3">
    >

    A bit of Google searching for the Document Object Model or DOM and Form
    Controls will turn up several ways that you can dynamically loop over
    parts of your document's structure and access elements dynamically by
    their array position.

    To provide much more of an example then this, one would need to know
    more about the structure of your document being searched.

    Here is the first link I found using Google
    http://www.jibbering.com/faq/faq_notes/form_access.html