Hi there
I'm trying to transverse some form elements by name, the example here gets all the inputs by a particular name e.g. category. This returns the two expected elements. In the future i'd like to serialize these without them having to be inside a 'form' tag.
Issues: One of the elements is checked, the returned value is null however, the attribute property returns the right id. Is there a way to solve this?
Whilst the elements are read, I cant seem to get some of the attribute values..
Thanks..
I'm trying to transverse some form elements by name, the example here gets all the inputs by a particular name e.g. category. This returns the two expected elements. In the future i'd like to serialize these without them having to be inside a 'form' tag.
Issues: One of the elements is checked, the returned value is null however, the attribute property returns the right id. Is there a way to solve this?
B4X:
Sub GetMember1 As Boolean
Dim elID As String = "category"
Dim el As BANanoElement = BANano.GetElement($"input[name='${elID}']"$)
Dim els() As BANanoElement = el.Siblings("")
For Each radio As BANanoElement In els
Log(radio)
Log("*** type")
Log(radio.GetAttr("type"))
Log("*** checked")
Log(radio.GetChecked)
Log("*** id")
Log(radio.GetAttr("id"))
Log("*** value")
Log(radio.GetValue)
Log("*** checked attr")
Log(radio.GetAttr("checked"))
Next
Whilst the elements are read, I cant seem to get some of the attribute values..
Thanks..