开发者

Regarding jquery select tag

开发者 https://www.devze.com 2023-02-22 08:16 出处:网络
I\'开发者_StackOverflowm using struts2 and jQuery. Following is my code written in JSP: <s:select o name=\"mfgDimensions\" list=\"{\'Product\',\'Station\',\'Test\',\'AssemblyLine\',\'Operator\',\

I'开发者_StackOverflowm using struts2 and jQuery.

Following is my code written in JSP:

<s:select o name="mfgDimensions" list="{'Product','Station','Test','AssemblyLine','Operator','Debug Mode'}" multiple="true" headerKey="" headerValue="Manufacturing Dimensions" size="3"/>

I want when user will going to select header value (i.e in my case "Manufacturing Dimensions") the value will not be get selectable...

can it be possible with jquery or any other way??

Thanks kris


    <s:select id="dimension" name="mfgDimensions" list="{'Product','Station','Test','AssemblyLine','Operator','Debug Mode'}" multiple="true" headerKey="" headerValue="Manufacturing Dimensions" size="3"/
onchange="check_value(this.value)"/>


function check_value(value){
if(value=="Manufacturing Dimensions")
  document.getElementById("dimension').value='';
}
0

精彩评论

暂无评论...
验证码 换一张
取 消