Zefirs Posted April 8, 2011 Report Posted April 8, 2011 (edited) Tātad ir poga kas atver jquery UI dialog logu. $('#register a').click(function() { $("#registerbox").dialog("open"); }); To nospiežot tiek nezināmu iemeslu dēļ izsaukts arī focusout event #reg_username td input[name=username] šim elementam, kas atrodas iekš dialog loga. $("#reg_username td input[name=username]").focusout(function() { var reg_username = $("#reg_username td input[name=username]").val(); if (reg_username == '' || reg_username.search(/[^a-zāžšēģīūļķņA-ZĀŽŠĒČĢŅŪĪĶĻ0-9]/) > -1) { $('#reg_username').addClass('wrong_input'); valid_inputs = false; } else { $('#reg_username').removeClass('wrong_input'); }}); Kā var piespiest jquery neizsaukt focusout event tad, kad ielādē dialog logu? Edited April 8, 2011 by Zefirs Quote
0 indoom Posted April 11, 2011 Report Posted April 11, 2011 Pārbaudi vai dialogs ir atvērts .dialog( "isOpen" ) tajā focusout. Quote
Question
Zefirs
Tātad ir poga kas atver jquery UI dialog logu.
To nospiežot tiek nezināmu iemeslu dēļ izsaukts arī focusout event #reg_username td input[name=username] šim elementam, kas atrodas iekš dialog loga.
Kā var piespiest jquery neizsaukt focusout event tad, kad ielādē dialog logu?
Edited by Zefirs1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.