jQuery UI Widgets Forums Lists ComboBox Setfocus Combobox Unselect

This topic contains 6 replies, has 2 voices, and was last updated by  ekaperintis 11 years, 6 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • Setfocus Combobox Unselect #16502

    ekaperintis
    Participant

    My source code :

    $("#cboJalan").bind('unselect', function(event)
    {
    if (event.args) {
    $("txtNopel").focus();
    }
    });

    Why don’t work ???

    You Have any ide ???

    Thanks

    Setfocus Combobox Unselect #16509

    Dimitar
    Participant

    Hello ekaperintis,

    Please provide us with a bigger code snippet, including the HTML code, so that we may be of help.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Setfocus Combobox Unselect #16514

    ekaperintis
    Participant

    This is my code :

    <body class='default'>
    <fieldset>
    <legend><b>Pelanggan Baru</b></legend>
    <br>
    <table border="0" >
    <tr>
    <td width="110">No Mutasi</td>
    <td><label for="txtNoMutasi"></label>
    <input type="text" name="txtNoMutasi" id="txtNoMutasi" > NO SPL
    <input type="text" name="txtSPL" id="txtSPL">
    <input name="txtSPL2" type="text" id="txtSPL2" size="5"></td>
    </tr>
    </table>
    <table>
    <tr>
    <td width="110">Cabang</td>
    <td name="cboCabang" id="cboCabang"> </td>
    <td name="cboWilayah" id="cboWilayah"></td>
    <td name="cboJalan" id="cboJalan"></td>
    </tr>
    </table>
    <table>
    <tr>
    <td width="110">No Pelanggan</td>
    <td><label for="txtNo"></label>
    <input type="text" name="txtNo" id="txtNo" />
    <input type="text" name="txtNopel" id="txtNopel" /> Nama
    <input type="text" name="txtNama" id="txtNama" /></td>
    </tr>
    </table>
    </fieldset>
    </body>
    </html>
    Setfocus Combobox Unselect #16516

    Dimitar
    Participant

    Hi ekaperintis,

    When you unselect an item and select another one, the focus automatically goes to the combobox again. Thus, it is not possible to focus anywhere else on the unselect event.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Setfocus Combobox Unselect #16520

    ekaperintis
    Participant

    Hi Dimiter,,,

    I done select item, but don’t focus to txtNopel …

    Setfocus Combobox Unselect #16522

    Dimitar
    Participant

    Hi ekaperintis,

    Unfortunately, it is not possible to focus on txtNopel.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Setfocus Combobox Unselect #16532

    ekaperintis
    Participant

    Oke, thanks master

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.