parsing the web document for id's
Posted: Tue Nov 03, 2009 8:47 pm
I have a block of code and I would like to know what the id for the child element for a given block of code is.
Can I get this information programmatically?
my code:
The item I want is the div id for class=inputFieldErrors id='f1'
any insight appreciated
thank you
Kevin
Can I get this information programmatically?
my code:
Code: Select all
<div class="formParent">
<form id="form1" name="form1" method="post"
action="<?php echo $_SERVER['PHP_SELF']; ?>"
onsubmit="return myObj.formCheck(this, 'editRegPatient')">
<div class="formRow">
<!-- holds data and field cell -->
<div class="cellContainerLeft">
<div class="inputTitle">First Name:</div>
<div class="inputField">
<input name="fName" type="text" id="fName"
maxlength="25" value="<?php echo $_SESSION['SES_fName']; ?>"
onblur="myObj.setValues('f1', this.value, name);"/>
</div>
</div>
<div class="cellContainerRight">
<div class="inputFieldErrors" id="f1">
<?php if(isset($_SESSION['SES_nameErr'])) { $name = $_SESSION['SES_nameErr']; echo $name;} ?>
</div>
</div>
</div><!-- end row -->
</div><!-- end parent -->any insight appreciated
thank you
Kevin