![](/img/trans.png)
[英]jQuery to only add new fields when something is entered in the input fields
[英]When something entered into input do something with jquery
嗨,謝謝你的閱讀。
我有一個輸入框,用於輸入網址。 當用戶輸入URL時,用戶必須單擊按鈕以從中獲取值。
就是這個
jQuery(document).ready(function($){
$(".button-class").click( function(event) {
//do something
)};
)};
最終所有用戶單擊該按鈕。 我想做的是,只要他們輸入網址或應該觸發腳本的內容。
有沒有類似的東西?
jQuery(document).ready(function($){
$(".button-class").entered( function(event) {
//do something
)};
)};
謝謝。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.