2016-03-18 15 views
-3

私はonblur関数を実行しているフィールドを持っており、そのフィールドの値を送信する必要がありますが、実際に誰かが私に手を差し伸べる方法がわからないのですか?それは、サーバーへのフィールドデータを送信することになるとonblurで変数を送信する

$condicion .= $nombremetadato['campoDocumentoPropiedad'].' = ? and '; 
$condicion = substr($condicion, 0, strlen($condicion)-4); 
$cond = ''; //This is the value I want Arrives from The Other Form 
$consulta = DB::Select(DB::raw('SELECT '.$campos.' from '.$nombremetadato['tablaDocumento'].' where '.$condicion.''), array($cond)); 

答えて

1

ブラウザウィンドウ内の焦点は本当に重要ではありません。あなたはあなたの質問にもっと具体的にするべきです、多分コードを投稿してください。 id/name属性を使用して、フィールドの値を取得してください。

あなたはフィールドがぼやけされたときに、いくつかの特別な処理を行うようなものを使用する必要がある場合は、次のような、Javascriptの機能にフックする

<input type="text" onblur="myFunction(this)" value="Value here!!"> 

を:

<script> 
        myFunction(callerObj){ 
           var val = callerObj.value; 
           // do something with val before submitting for processing by server 
        } 
    </script> 
+0

準備、私がっ試してみてください。 –

+0

あなたが答えが好きな人は、私にプラスできます;) – Hektor

関連する問題