Foros de discusión

focusout event in Alloy aui is not working

Vaibhav Mittal, modificado hace 10 años.

focusout event in Alloy aui is not working

Junior Member Mensajes: 54 Fecha de incorporación: 16/07/12 Mensajes recientes
Hi All,

I am using Allou ui taglib in my portlet for displaying form. I want to add the event at time user finished writing in the input box and moves to other. We generally use focusout event for this requirement, but this even does't work in alloy aui. If any other alternative we have to fullfill this requirement or if I am using this in wrong way. Below is my code:

<aui:input type="text" name="login" label="login" id="login">
<aui:validator name="required" />
</aui:input>
..........
...........
AUI().ready('aui-io-request', function(A) {
var myList = A.one('#<portlet:namespace />login');
var showMsg = A.one('#check-username');
myList.on('focusout', function(event){alert("hello");
.................