0

I am using a windows service, and html+j query page to consume a web service.
When a Document is scanned in our device, I want to load: name, country, and Passport number to our web page.
I already append these details in my web page, but I want to load these details in a text box. enter image description here

<th>Passport No: <input type="text" id="initialize" value="d.get.DocumentNumber"/>
<th>Disable:<input type="text" id="disable"/>
<th>Country:<input type="text" id="initialize1"/>
<input type="button" id="documentButton" value="Document"/>

1 Answer 1

1

Quick example for your reference.

use jQuery selector using # for id and . for class by appending the id or class name and pass the value into val function.

$('#initialize').val('Test');
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.