To pass jquery result to textbox of html

Posted on 2013-09-21
Medium Priority
Last Modified: 2013-09-21
This is on Jquery/HTML/Java script.

So code given by me displays the output at the right place as specified by me. (Div  with id as 'result'.

Please let me know the any method to display the result in text box  so that i can use that value for further validation.

[embed=snippet 8257973]

Open in new window

<script type="text/javascript" src="jquery-2.0.3.min.js"></script>
              <script type="text/javascript">
			     {   $(document).ready(function(){

					var settlementnum=$('#num').val();



Open in new window

Question by:shrikanthnk
  • 2
LVL 15

Accepted Solution

gplana earned 1500 total points
ID: 39511401
You should use something like this:

$('input[name="textboxname"]').val('some value');

Open in new window

Where "textboxname" is the name of your input text box.

<link removed - Please refer to EE's TOU - GaryC123 21st Sept 13>

Hope it helps. Regards.
LVL 15

Expert Comment

ID: 39511865
I don't understand why link to another site is not allowed. My intention was just to give some extra details about the line of code I put.
However, if you try the line of code I provided it should work if you just change "textboxname" by the name of your input textbox, and if you change "some value" by the value do you want to assign to it.

Hope it helps. Regards.

Author Closing Comment

ID: 39511999

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
This article will show, step by step, how to integrate R code into a R Sweave document
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question