Hello,

I am new to JQuery and I am having problems to traverse a HTML
document. What I want to accomplish is to get an <input> element with
id = h that is inside a <div>. This input element is part of a <FORM>
element.   So far I have tried the following jqueries without
success:

1. - $("form#frmSceneData >
div.frmRowOuter").children("div.frmRowField")
.show().html()

2.- $("form#frmSceneData").find ("div.frmRowField")
.show().html()

Applying the following jquery I am getting part of what I want. The
problem is traversing the rest of the form element  from this point
down to get "<INPUT class=forminput id=h
onchange=javascript:window.myPlaylistSceneEditorSection.onAttributeChanged(this);
value=110 name=h></INPUT>"

Here is what I am getting so far with the following jquery  $
("form#frmSceneData")
.show().html() :


<DIV class=frmRowOuter>
<DIV class=frmRowCaption>
<DIV class=frmCaption>Scene Name</DIV></DIV>
<DIV class=frmRowField><INPUT class=forminput id=scenename disabled
onchange=javascript:window.myPlaylistSceneEditorSection.onAttributeChanged(this);
value=1234new_SavedAsTest name=scenename></INPUT></DIV></DIV>
<DIV class=frmRowOuterHidden>
<DIV class=frmRowCaption>
<DIV class=frmCaption>sceneid</DIV></DIV>
<DIV class=frmRowField><INPUT class=forminput id=sceneid
onchange=javascript:window.myPlaylistSceneEditorSection.onAttributeChanged(this);
value=13715 name=sceneid></INPUT></DIV></DIV>
<DIV class=frmRowOuterHidden>
<DIV class=frmRowCaption>
<DIV class=frmCaption>basesceneid</DIV></DIV>
<DIV class=frmRowField><INPUT class=forminput id=basesceneid
onchange=javascript:window.myPlaylistSceneEditorSection.onAttributeChanged(this);
value=13387 name=basesceneid></INPUT></DIV></DIV>
<DIV class=frmRowOuterHidden>
<DIV class=frmRowCaption>
<DIV class=frmCaption>advid</DIV></DIV>
<DIV class=frmRowField><INPUT class=forminput id=advid
onchange=javascript:window.myPlaylistSceneEditorSection.onAttributeChanged(this);
value=16176 name=advid></INPUT></DIV></DIV>
<DIV class=frmRowOuterHidden>
<DIV class=frmRowCaption>
<DIV class=frmCaption>templateid</DIV></DIV>
<DIV class=frmRowField><INPUT class=forminput id=templateid
onchange=javascript:window.myPlaylistSceneEditorSection.onAttributeChanged(this);
name=templateid></INPUT></DIV></DIV>
<DIV class=frmRowOuterHidden>
<DIV class=frmRowCaption>
<DIV class=frmCaption>h</DIV></DIV>
<DIV class=frmRowField><INPUT class=forminput id=h
onchange=javascript:window.myPlaylistSceneEditorSection.onAttributeChanged(this);
value=110 name=h></INPUT></DIV></DIV>
<DIV class=frmRowOuterHidden>
<DIV class=frmRowCaption>
<DIV class=frmCaption>w</DIV></DIV>
<DIV class=frmRowField><INPUT class=forminput id=w
onchange=javascript:window.myPlaylistSceneEditorSection.onAttributeChanged(this);
value=172 name=w></INPUT></DIV></DIV>
<DIV class=frmRowOuter>
<DIV class=frmRowCaption>
<DIV class=frmCaption>image1</DIV></DIV>
<DIV class=frmRowField><INPUT class=forminput id=image1file type=file
onchange='javascript:document.getElementsByName("image1")[0].value =
this.value;
window.myPlaylistSceneEditorSection.onAttributeChanged(this);'
name=image1file></DIV></DIV>
<DIV class=frmRowOuterHidden>
<DIV class=frmRowCaption>
<DIV class=frmCaption>image1</DIV></DIV>
<DIV class=frmRowField><INPUT class=forminput id=image1
onchange=javascript:window.myPlaylistSceneEditorSection.onAttributeChanged(this);
name=image1></INPUT></DIV></DIV>
<DIV class=frmRowOuter>
<DIV class=frmRowCaption>
<DIV class=frmCaption>textbox1</DIV></DIV>
<DIV class=frmRowField><INPUT class=forminput id=textbox1
onchange=javascript:window.myPlaylistSceneEditorSection.onAttributeChanged(this);
value='" text"' name=textbox1></INPUT></DIV></DIV>
<DIV class=frmRowOuter>
<DIV class=frmRowCaption>
<DIV class=frmCaption>textbox2</DIV></DIV>
<DIV class=frmRowField><INPUT class=forminput id=textbox2
onchange=javascript:window.myPlaylistSceneEditorSection.onAttributeChanged(this);
value=sadasd name=textbox2></INPUT></DIV></DIV>
<DIV class=frmRowOuter>
<DIV class=frmRowCaption>
<DIV class=frmCaption>textbox3</DIV></DIV>
<DIV class=frmRowField><INPUT class=forminput id=textbox3
onchange=javascript:window.myPlaylistSceneEditorSection.onAttributeChanged(this);
value=sadsad name=textbox3></INPUT></DIV></DIV>


Any help will be appreciated

Thanks

VictorM

Reply via email to