Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Update TextField value with javascript

raahul k
1 decade ago Feb 08, 2010 4:56pm


Can the Window.executeJavaScript(String script) used to update a textfield value. Something like this

username   = new TextField();
		password   = new TextField();
				"username.value = readCookie('uname');"

Not sure how to get the dom id for username field. Can someone help?

Joonas Lehtinen
1 decade ago Feb 10, 2010 8:01am
sankar vinnakota
1 decade ago Oct 30, 2011 7:28pm