html - Dynamically assign values to select tag using Xquery -
i tried drop down using
<select> <option value="volvo">volvo</option> <option value="saab">saab</option> <option value="opel">opel</option> <option value="audi">audi</option> </select>
it working well. instead of hard-coded values , dynamically assign values xquery/xpath
example
/leader/country/text()
so have list of countries above code should go select tag of html
try xquery flwor expression like:
<select>{ $country in /leader/country/string(.) return <option value="{$country}">{$country}</option> }</select>
while xpaths on database useful getting started, it's learn search api or cts:search() query performance on large datasets.
hoping helps,
Comments
Post a Comment