English 中文(简体)
如何利用Perl的交换活动从Droop-downList手中收回选定的价值?
原标题:How to retrieve the selected value from Drop-downList using Onchange event in Perl?

I have a Select tag in the form in which i am giving the Static Options, My problem is to know "how to retrieve the value which i have selected",I dont want to use any Button to submit the value which i have selected.So i want to go with the "Onchange event " of select tag.

这里的法典载有某些政党:

 print qq[<td>Records PerPage</td>];
 print qq[<td><select name=" records " size="1"><option value="2">2<option value="4"
   selected>4<option value="6">6<option value="10">10</select></td></tr>];

请帮助我找到解决办法。 感谢

最佳回答

www.un.org/Depts/DGACM/index_spanish.htm EDIT:

Ok从 com子箱中获取贵重价值

   function getCombo1(sel) {
       var value = sel.options[sel.selectedIndex].value;  
   }
   <select id="combo1" onchange="getCombo1(this)">
   <option value="">Select combo</option>
   <option value="Value1">Text1</option>
   <option value="Value2">Text2</option>
   <option value="Value3">Text3</option>
   </select>

现在每当用户选择或改变 com纸箱的价值时,都会要求一个名称很少的功能更新储存这一价值的变量。

Hope this helps you. Let me know if it does.

<<>PK>/strong>

问题回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签