• Home
    • Company
    • Technologies
    • Team
    • Testimonials
    • Career
  • Webdesigning
    • Flash Website/Intro
    • Logo Designing
    • Graphic Design
    • Flash Presentation
    • E-Mailers/Flyer Designs
    • E-Brochure
    • Banner Designing
  • Webdevelopment
    • CMS Based Website
    • Mobile Website
    • E-Commerce Website
    • Job-Portal
    • Matrimonial Portal
    • Software Development
  • Internet Marketing
    • SEO-Search Engine Optimization
    • SMO-Social Media Optimization
    • PPCM-Pay Per Click Management
    • Link Building
    • Banner Advertisement
    • Affiliate Marketing
    • Plans
  • Portfolio
    • Web Design Portfolio
    • Web Development Portfolio
    • SEO Achievements
    • Logo Showcase
    • Banners Showcase
    • Flyers Showcase
  • Training
    • Web Designing
    • PHP Programing
    • Seo
    • Jobs
  • Outsourcing
  • Contacts
    • Enquiry Form
    • Chat With Us
    • Location Map
    • Newsletter
    • Site Support Ticket
    • Sitemap
Web Designing Company Delhi India,Web Development Company Delhi India,Web Solutions Company Delhi India,SEO Services Delhi India,Business Website Development Company Delhi India,Website Development Company Delhi India,Website Designing Company Delhi India
Web Designing Company Delhi India,Web Development Company Delhi India,Web Solutions Company Delhi India,SEO Services Delhi India,Business Website Development Company Delhi India,Website Development Company Delhi India,Website Designing Company Delhi India
+91-0-98102-36266
011-26138669
Or Mail us at
info@rpgwebsolutions.com
Web Designing Company Delhi India,Web Development Company Delhi India,Web Solutions Company Delhi India,SEO Services Delhi India,Business Website Development Company Delhi India,Website Development Company Delhi India,Website Designing Company Delhi India
Articles / Webdevelopment Tips
Add n number of textboxes dynamically
In some cases we require to add n number of text boxes where n depends on user input. For e.g., we want to define amenities of a property. No. of amenities will vary from property to property.

Using Javascript we will input no. of amenities required and dynamically required boxes will be generated. You can test this source code here.
As its name defines itself Information Technology is processing Information Technically.
Amenities
(first copy code in notepad then copy code from notepad ->paste in editor)
Put following source code inside Head tag:
<script>
var numLinesAdded = 0;
function generateRow() {
a=document.form1.nos.value;
for(i=1;i<=a;i++)
{var d=document.getElementById("div");
s="Amenties "+(numLinesAdded+1);
d.innerHTML+="<table><tr><td><font size=2>"+ s +"</font></td><td><input type='text' name='Amenties_" + numLinesAdded + "'></td></tr></table>";
numLinesAdded++;}}
</script>
Put following source code inside Body tag where you want to generate dynamic text boxes:
<form name="form1">
<table> 
<tr>
           <td valign="top" bgcolor="#E8E8E8"> <p align="right">Amenities </p></td>
           <td valign="top" bgcolor="#E8E8E8"> <div id="div"></div>
              <input name="nos" type="text" id="nos" size="4">
               <input name="button" type="button" onclick="generateRow()" value="No. of Amenities"/></tr>
</table>
</form>
Have you tried this on your page? It must be working fine. Now question is how to send these values to Database. Soon I will update this article explaining how to send these values to Database.
Poonam
Back to Articles

Web Designing
  • Flash Website/Intro
  • Logo Designing
  • Graphic Design
  • Flash Presentation
  • E-Mailers/Flyer Designs
  • E-Brochure
  • Banner Designing
Web Development
  • CMS Based Website
  • Mobile Website
  • E-Commerce Website
  • Job-Portal
  • Matrimonial Portal
  • Software Development
Web Marketing
  • Search Engine Optimization
  • Social Media Optimization
  • Pay Per Click Management
  • Link Building
  • Banner Advertisement
  • Affiliate Marketing
  • Email Marketing
  • SEO Business Plans
RPG Websolutions based in Delhi, provides professional services in website designing
Get a Free Quick Quote
 
 
Google
Top 10 Ranking Guaranteed...
  • 100% Ethical Aapproach Used
  • Achieved in the Promised Deadline
  • Target Market Oriented
  • Real Traffic Multiplied
  • Only Productive Keywords Targeted
RPG Websolutions based in Delhi, provides professional services in website designing
Our
Esteemed Clientele
RPG Websolutions based in Delhi, provides professional services in website designing RPG Websolutions based in Delhi, provides professional services in website designing
RPG Websolutions based in Delhi, provides professional services in website designing RPG Websolutions based in Delhi, provides professional services in website designing
RPG Websolutions based in Delhi, provides professional services in website designing
Hire
a  Professional
  • SEO Professional
  • PHP Developer
  • Web Marketing Professional
  • Web Designer
RPG Websolutions based in Delhi, provides professional services in website designing

RPG Websolutions based in Delhi, provides professional services in website designing
RPG Websolutions based in Delhi, provides professional services in website designing
Web Designing Company Delhi India,Web Development Company Delhi India,Web Solutions Company Delhi India,SEO Services Delhi India,Business Website Development Company Delhi India,Website Development Company Delhi India,Website Designing Company Delhi IndiaWeb Designing Company Delhi India,Web Development Company Delhi India,Web Solutions Company Delhi India,SEO Services Delhi India,Business Website Development Company Delhi India,Website Development Company Delhi India,Website Designing Company Delhi IndiaWeb Designing Company Delhi India,Web Development Company Delhi India,Web Solutions Company Delhi India,SEO Services Delhi India,Business Website Development Company Delhi India,Website Development Company Delhi India,Website Designing Company Delhi India
RPG Websolutions based in Delhi, provides professional services in website designing
Copyright © RPGIS Pvt. Ltd. All Rights Reserved.
Terms & Conditions   |   Privacy Policy   |   Disclaimer