javascript - How to set value in input text with choices -
i have element:
<input type="text" title="test" choices="aucune|0| testa|1| testb|2|" />
i'd select value id 2, how can achive this?
solution:
i found solution on post: when have more 20 items in input select changes input text linked hidden selected value http://geekswithblogs.net/soyouknow/archive/2011/04/06/setting-sharepoint-drop-down-lists-w-jquery---20-items.aspx
use select
<select> <option value="0">aucune</option> <option value="1">testa</option> <option value="2" selected>testb</option> </select>
Comments
Post a Comment