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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -