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

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -