onblur

    0熱度

    1回答

    困難我真的很新的JavaScript/jQuery和我有困難的時候理解以下thisquery事件: 我在頁面的頭部加載我的腳本。 我有一個輸入的形式有點像這樣... <input id='registeremail' type='email; name='email' onblur=checkemail() > <button id='btn1'>Hello</button> 在上述情況下

    0熱度

    1回答

    我想添加onfocus/onblur事件到一個窗體,但不知何故我沒有得到它的工作。我認爲這與逃避報價有關,但我嘗試了幾種方法,但都沒有成功。我的代碼是這樣的:在你的onblur串 echo '<input type="password" id="'.$field->name.'" name="'.$field->name.'" size="30" class="inputbox" placehol

    -1熱度

    2回答

    我一直試圖改變一個textarea的邊框顏色焦點時,但它沒有做任何事情,即使我只是試圖提醒一些事情。 這是到目前爲止,我已經試過的方法: 第一: $('#idname').on('blur', function() { alert(1); }); 第二: document.getElementById('idname').onblur() = function() { a

    0熱度

    2回答

    我的形式有少量字段中,用戶可以在這樣一個 <input name='extracost' type='text' size='25' id='extracost' value='$extracost' onChange='calculate();' > 問題增加值是與的onblur或只的onChange「似乎」工作一次。如果元素extracost以0或null開始,例如,如果我將它的形式更改爲

    1熱度

    1回答

    Phone:<br> <input type="text" id="phone" name="phone" placeholder="Please enter your phone number"> The input box looks like this to begin with On click/focus, it looks like this 在鍵入數字值,下劃線應該得到更換或數

    -1熱度

    1回答

    我在輸入上綁定了模糊。在模糊處,我想使用$(this)並檢測此輸入。有沒有辦法做到這一點? <input data-john="x" data-doe="false"> $('[data-john=x]:not([data-doe=true])').blur(function() { console.log($(this)) }) 在此示例中,$(this)正在返回Window

    1熱度

    2回答

    我有,我想格式化的onblur輸入字段值,這裏是我的代碼如下所示: 組件: <Input onBlur={this.formatEndpoint} /> 功能: formatEndpoint() { let endpoint = this.state.inputEndpoint; endpoint = endpoint.replace(/\s/g, '

    -1熱度

    1回答

    我目前呼籲的對模糊功能適用於所有文本框,如下面的onblur給環路連續警告: <input type="text" id="fname" onblur="myFunction()"> <input type="text" id="fname2" onblur="myFunction()"> 這驗證提供的輸入和的情況下,給出了一個警告不匹配。我在這裏面臨的問題是,當用戶從1個文本框模糊並直接聚

    1熱度

    1回答

    我的網頁和IFrame一起倒計時。倒計時將在$(window).blur停止,並從$(window).focus開始。當我點擊IFrame時,它會觸發模糊事件並停止倒計時。我通過以下代碼行解決了這個問題。 $(window).blur(function() { if (document.activeElement.nodeName == "IFRAME") { //Contin

    0熱度

    1回答

    我知道很多相關的問題到目前爲止已被問到,但我找不到真正解決我的問題。 從來就得到了相同的形式,從我的最後一個問題 - body { background-color: black; } .input-icon{ float:left; } <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.