I am designing a small application in .net where it dynamically creates the textbox when a "Add button" is clicked. The web page is populated with Text boxes whenever a user clicks on the button. The code where the textbox is being created dynamically is pasted below.
var newTextBoxDiv = $(document.createElement('div')) .attr("id", 'TextBoxDiv' + counter);
newTextBoxDiv.after().html('<label> Phonenumber'+ counter + ' : </label>' +
'<input type="text" name="textbox' + counter +
'" id="textbox' + counter + '" value="" >');
newTextBoxDiv.appendTo("#TextBoxesGroup");
counter++;
});
So my next task is to use the data that is entered in the text box and do a call to the web service so that the web page gets updated once the data is entered. So, basically, for example
step1: user clicks on add Number button to add their phone number
step2: textbox is created dynamically
step3: user enters the phone number using that text box
step4: His account on siteB.com gets updated once he enters the phone number.(I was suppose to call WebService(REST) to update the SiteB.(I don't know how to do that)