html - Get text when inputing content with Input tag by Javascript -


I will tell you about your program question.

& lt; Label = "test" & gt; Username: & lt; / Label & gt; & Lt; Input type = "text" id = "test" & gt; & Lt; P id = "" & gt; & Lt; / P & gt;
  $ ("#search"). Onclick (function () (warning ('xx');})  

I want to realize this function: p tag displays real time < Code> input tag content when I input something

Thank you.

You funnel event,

  $ ("# Test") can be used. Key (function () {$ ("# paragraph"). Html (this.value);});  


Comments

Popular posts from this blog

c# - Reactive Extensions ControlScheduler -

scala - Play Framework - how to bind form to a session field -

c++ - Why does Visual Studio Release build break on non-executing code line -