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
2010-09-27 10:09:02
+1
A:
HTML
<input type="text" id="textbox1" class="sameclass" />
<input type="text" id="textbox2" class="sameclass" />
JS
$('input.sameclass').val('some text')
how
2010-09-27 10:11:05