留言板

aui:select option problem

thumbnail
jaid shaik,修改在11 年前。

aui:select option problem

Regular Member 帖子: 171 加入日期: 10-10-8 最近的帖子
HI team,

<aui:select name="bdType" label="" cssclass="selLarge" onchange="${namespace}showUnit()">			
					<aui:option value="">
						<liferay-ui:message key="select" />
					</aui:option> 
					<c:foreach var="i" begin="0" end="${test}">
						<aui:option value="${test}" selected="${test eq pres  || test eq ght || test eq cose || test eq flow || test eq pulse || test eq temp  }">
							<liferay-ui:message key="Add a ${test} reading" />
						</aui:option>
					</c:foreach>
				</aui:select>


The above code select options is working onclick popup with multiple option but other option items are disabling....
I inspect in firefox issue it's dynamically calling disabled=" " for selected.
how to avoid disabled=" ".

Thanks
thumbnail
Prakash Khanchandani,修改在11 年前。

RE: aui:select option problem

Expert 帖子: 329 加入日期: 11-2-10 最近的帖子
I am not able to understand your problem clearly, in your code it is "onchange" and iin your description you are saying "onclick", also the code in "showUnit()" javascript method will help debug what is happening.

I didn't understand which options are getting disabled and which are enabled -- may be a little more explanation or a screenshot explaining it would help.

Thanks