ON 20050509@7:48:57 AM at page: http://www.sxlist.com/language/html/ib/Forms/text.htm#38481.0113657407 James Newton[JMN-EFP-786] published post 38481.0113657407 vsramakrishna_2001@yahoo.com asks: " How to populate a textarea with array contents dynamically in javascript." |Delete 'P-' before: '' but after: 'palin_v@yahoo.com asks:
Hi,|Delete 'P-' before: '' but after: '
i want the focus to be back to List box he no option is selected say if i skip to other field i want the focus to be on the list box till i choose some option.
Here the code goes:
function choice()
{
if (document.Register.District.selectedIndex == 1)
{
window.alert('You selected District ' +
(document.Register.District.selectedIndex));
}
else {
window.alert('Please select the District');
document.Register.District.focus();
}
}