Click here to Skip to main content
15,897,226 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Stupid problem with innerHTML in Javascript Pin
Michael Sync11-Dec-07 19:24
Michael Sync11-Dec-07 19:24 
GeneralRe: Stupid problem with innerHTML in Javascript Pin
ieaeitsch11-Dec-07 21:52
ieaeitsch11-Dec-07 21:52 
GeneralRe: Stupid problem with innerHTML in Javascript Pin
Michael Sync11-Dec-07 22:28
Michael Sync11-Dec-07 22:28 
GeneralRe: Stupid problem with innerHTML in Javascript Pin
Michael Sync11-Dec-07 22:29
Michael Sync11-Dec-07 22:29 
GeneralRe: Stupid problem with innerHTML in Javascript Pin
ieaeitsch11-Dec-07 22:46
ieaeitsch11-Dec-07 22:46 
GeneralRe: Stupid problem with innerHTML in Javascript Pin
ieaeitsch11-Dec-07 22:53
ieaeitsch11-Dec-07 22:53 
GeneralRe: Stupid problem with innerHTML in Javascript Pin
Michael Sync11-Dec-07 23:55
Michael Sync11-Dec-07 23:55 
GeneralRe: Stupid problem with innerHTML in Javascript Pin
Michael Sync12-Dec-07 0:03
Michael Sync12-Dec-07 0:03 
You probably should write like that.

function addOptions()<br />
		{<br />
		var sel = document.getElementById("CodeProjTest");<br />
		// Remove existing options<br />
		sel.options.length = 0;<br />
<br />
		// Add 5 options, make opt index 2 default selected and 4 selected<br />
		for (var i=0; i<5; ++i){<br />
		sel[sel.options.length] =<br />
		new Option('Option ' + i, 'opt' + i, (i==2), (i==4) );<br />
		}<br />
		}


Ref : http://www.thescripts.com/forum/thread453749.html[^]

Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)


GeneralRe: Stupid problem with innerHTML in Javascript Pin
WoutL11-Dec-07 22:47
WoutL11-Dec-07 22:47 
GeneralRe: Stupid problem with innerHTML in Javascript Pin
ieaeitsch11-Dec-07 22:54
ieaeitsch11-Dec-07 22:54 
QuestionChoose File Window, how to open? Pin
hifiger200411-Dec-07 1:53
hifiger200411-Dec-07 1:53 
AnswerRe: Choose File Window, how to open? Pin
pmarfleet11-Dec-07 2:40
pmarfleet11-Dec-07 2:40 
QuestionHow to Improve performance of Website(Update Panel) Pin
khansameer11-Dec-07 1:18
khansameer11-Dec-07 1:18 
AnswerRe: How to Improve performance of Website(Update Panel) Pin
Member 647720212-Aug-09 17:55
Member 647720212-Aug-09 17:55 
AnswerRe: How to Improve performance of Website(Update Panel) Pin
maniksan2-Sep-09 21:32
maniksan2-Sep-09 21:32 
GeneralWeb Service in 2005 being called in VB.NET 2003 [modified] Pin
BlueMeanie187810-Dec-07 23:21
BlueMeanie187810-Dec-07 23:21 
GeneralRe: Web Service in 2005 being called in VB.NET 2003 Pin
pmarfleet11-Dec-07 2:42
pmarfleet11-Dec-07 2:42 
Generalconnection between two html pages Pin
neoghy10-Dec-07 21:35
neoghy10-Dec-07 21:35 
GeneralRe: connection between two html pages Pin
Christian Graus10-Dec-07 22:32
protectorChristian Graus10-Dec-07 22:32 
QuestionAutosuggest problem Pin
sameer_wanwey10-Dec-07 19:10
sameer_wanwey10-Dec-07 19:10 
GeneralRe: Autosuggest problem Pin
Michael Sync10-Dec-07 20:45
Michael Sync10-Dec-07 20:45 
Generalmessagebox in C# Pin
hifiger200410-Dec-07 6:05
hifiger200410-Dec-07 6:05 
GeneralRe: messagebox in C# Pin
Shog910-Dec-07 6:43
sitebuilderShog910-Dec-07 6:43 
GeneralRe: messagebox in C# Pin
StianSandberg10-Dec-07 20:42
StianSandberg10-Dec-07 20:42 
GeneralRe: messagebox in C# Pin
hifiger200412-Dec-07 0:32
hifiger200412-Dec-07 0:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.