tags:

views:

41

answers:

2

I am working with jquery, i want to write a text in two textbox control at a time.

+1  A: 

HTML

<input type="text" id="textbox1" />
<input type="text" id="textbox2" />

jQuery

$('#textbox1, #textbox2').val('some text');

Moin Zaman
+1  A: 

HTML

<input type="text" id="textbox1" class="sameclass" />
<input type="text" id="textbox2" class="sameclass" />

JS

$('input.sameclass').val('some text')
how