callback - jquery how to capture value after event -


I made tremendous progress with my coding and left only the last question I have in partial view the value of any other textbox How can I capture and move it to my current textbox? This is a simple code

  & lt; Script & gt; $ (Document) .ready (function () {$ ('# form0') Trigger ('submit', function () {$ ("# longituder"). Val () = $ ("# sese"). ();});}); & Lt; / Script & gt;  

Form 0 has a textbox with id. #sese And it always has a value, I'm trying to get that value in my text box of #longituder . This callback function needs to be done, as long as the text box #sese can not be found for the DOM, the trigger will not be found inside the event and takes a few seconds after coming to the page; Is there a form in which I can delay this section

  $ ("# longituder"). Val () = $ ("# sese"). Val ();  

Until .trigger has run away?

this is incorrect

  $ ("#product") . Val () = $ ("# sese"). Val ();  

should be

  $ ("# longer period"). Val ($ ("# sese"). Val ()); With delay  

:

  $ ("# longer period"). Delay (2000) .val ($ ("# sese"). Val ());  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -