middlesummer

<script src="jquery-1.9.1.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$(\'#username\').focus(function ()//得到教室时触发的时间
{
$(\'#username\').val(\'\');
})
$(\'#username\').blur(function () 失去焦点时触发的时间
{
if ($(\'#username\').val() == \'marry\') {
$(\'#q\').text(\'用户名已存在!\')
}
else { $(\'#q\').text(\'ok!\') }
})

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-01-15
  • 2021-07-02
  • 2021-12-19
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
猜你喜欢
  • 2021-12-19
  • 2021-12-19
  • 2021-12-19
  • 2022-12-23
  • 2021-12-19
  • 2021-12-19
相关资源
相似解决方案