|
-
Jan 25th, 2010, 03:04 AM
#1
Thread Starter
Junior Member
web browser
Hi there i have a problem. There is a page with more textboxes with same id and i want to fill them with text so i use
Wb.Document.getElementById("add_comment_text").Value = Text2.Text
the problem is this only fills only the first textbox and leaves the rest empty,how would i go about doing this? Can you post me some example
-
Jan 25th, 2010, 03:24 AM
#2
Lively Member
Re: web browser
 Originally Posted by tonck
Hi there i have a problem. There is a page with more textboxes with same id and i want to fill them with text so i use
Wb.Document.getElementById("add_comment_text").Value = Text2.Text
the problem is this only fills only the first textbox and leaves the rest empty,how would i go about doing this? Can you post me some example
try to use name field if it has same id
eg:
Code:
Html Code
<input type=text id=text1 name=t1><input type=text id=text1 name=t2>
vb code
Code:
Wb.Document.getElementById("t1").Value = Text2.Text
Wb.Document.getElementById("t2").Value = Text2.Text

Im Pro in C#,VB.NET,Batch,Socket Programming, SPY Software Programming, VB6, Win32Api, VBscript, Windows Registry, ASP.NET, PHP, Jquery, AJAX.
-
Jan 25th, 2010, 10:45 AM
#3
Thread Starter
Junior Member
Re: web browser
all my text boxes have same code look
<textarea name="add_comment_text" class="add_comment_text DOMControl_placeholder" placeholder="Napiši komentar...">Napiši komentar...</textarea>
<textarea name="add_comment_text" class="add_comment_text DOMControl_placeholder" placeholder="Napiši komentar...">Napiši komentar...</textarea>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|