2017年12月9日星期六
2017年7月2日星期日
Javascript select option
If you have a select element that looks like this:
<select id="ddlViewBy">
<option value="1">test1</option>
<option value="2" selected="selected">test2</option>
<option value="3">test3</option>
</select>
Running this code:var e = document.getElementById("ddlViewBy");
var strUser = e.options[e.selectedIndex].value;
Would make strUser be 2. If what you actually want is test2, then do this:var e = document.getElementById("ddlViewBy");
var strUser = e.options[e.selectedIndex].text;
Which would make strUser be test2
2017年3月2日星期四
How to Generate a .POT File Using Poedit
http://www.gsy-design.com/how-to-generate-a-pot-file-using-poedit/
2017年1月29日星期日
訂閱:
文章 (Atom)
