Input value-php Tutorial

Source: Internet
Author: User
Input value
 
 This effect 
  

{If $ list or $ list | @ count neq 0} {foreach from = $ list item = item key = index} {If $ item. parent_tow_id eq 2} {/If} {if $ item. parent_tow_id eq 1} {/If} {if $ item. parent_tow_id eq 0} {/If} {/Foreach} {else} {/If}
Serial Number Country Province Region Operation
{$ Index}{$ Item. country} {$ Item. province} {$ Item. name}{$ Item. country} {$ Item. name} {$ Item. name}
-- No data --
{Include file = warning. tpl}


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


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.