THE FORUM IS IN READ-ONLY MODE
Parsing CSS helping
<option value="Female" selected>Female</option>
<option value="Male" >Male</option>
i want parse selected female
so what codes should i use for selector and attribute?
meinname last edited by
try it with
selector #Gender > option:checked
and attribute value or innerHTML
not worked,acctually variable not even created
@ruri acctually i tested that first,not work too lol
its really problem foor me because all parse i want capture are same codes and i dont know how can i parse them
meinname last edited by meinname
No, it is "checked" - as I use the same (other id) on a config of mine.
i tested this (it's your posted code - only "minified")
FUNCTION Constant "<select id=\"Gender\"><option value=\"Female\" selected>Female</option><option value=\"Male\">Male</option></select>" -> VAR "TEST" PARSE "<TEST>" CSS "#Gender > option:checked" "value" CreateEmpty=FALSE -> CAP "RESULT"
Shows wanted result:
@meinname yes that worked!
i had should use value in attribute and i forgot to test that,thanks my friend