B4J Question GetElementsByTagName And SetAttribute

klingon467

Member
Licensed User
Longtime User
Hi!
i would like to convert this for b4j
vb.net source...
B4X:
For Each Elements As HtmlElement In WebBrowser1.Document.GetElementsByTagName("input")
            If Elements.GetAttribute("name") = "pass" Then


                'if You want to Set Value of this object Follow this
                Elements.SetAttribute("value", "Your Value Goes here")
            End If
        Next
this code get a string into htmlelement search the tag name e set the attribute by value
it is possible in b4j?
 
Top