How do you determine the input type in Dart? -
i'd find radio buttons on form , leave other input types alone. code looks this:
form.queryall("select, input").foreach((element el) { if (el radiobuttoninputelement) { print ('got radio button'); } else { print ('got other input type'); } }
this results in input types other select
being identified radio buttons. in fact, if @ el
in then
branch ("got radio button"), reported inputelement
.
you write query selector return radio buttons.
list<radiobuttoninputelement> list = element.queryselectorall("input[type='radio']");
Comments
Post a Comment