Jump to content

simple doubt loop


felito

Recommended Posts

                        Hi

 

What is the correct syntax for this code?

 

                                 for(var i = 0; i < 10; i++) {
                                    alert(i);
                                    document.write('<option value="weddingpage.htm">Weddings'+i'</option>');
                                }

           

just to learn, the alternative in jquery?

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/238933-simple-doubt-loop/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.