Input value
|
Serial Number |
Country |
Province |
Region |
Operation |
{If $ list or $ list | @ count neq 0} {foreach from = $ list item = item key = index}
{$ Index} | {If $ item. parent_tow_id eq 2}
{$ Item. country} |
{$ Item. province} |
{$ Item. name} | {/If} {if $ item. parent_tow_id eq 1}
{$ Item. country} |
{$ Item. name} |
| {/If} {if $ item. parent_tow_id eq 0}
{$ Item. name} |
|
| {/If}
|
{/Foreach} {else}
-- No data -- |
{/If}
{Include file = warning. tpl} |
This effect
Click "OK" to obtain the input value of the text box. Is it possible to achieve this?
Reply to discussion (solution)
《script》function foo() { var res = []; var texts = document.getElementsByName("p"); for(var i in texts) res.push(texts[i].value;}《script》
Res is
《script》function foo() { var res = []; var texts = document.getElementsByName("p"); for(var i in texts) res.push(texts[i].value;}《script》
Res is
What is it? I am a newbie. I really don't know that much about it. Are there too few pieces of code you wrote?
《script》function foo() { var res = []; var texts = document.getElementsByName("p"); for(var i in texts) res.push(texts[i].value;}《script》
Res is