Она должна выглядеть так:
Требуется тип имени?
Пример ввода:
- Тип имени Требуется?
- Тони Администратор отметил (флажок) Удалить 10){
alert("Only 10 textboxes allow");
return false;
}
var newTextBoxDiv = $(document.createElement('div'))
.attr("id", 'TextBoxDiv' + counter);
newTextBoxDiv.after().html('Textbox #'+ counter + ' : ' +
'');
newTextBoxDiv.appendTo("#TextBoxesGroup");
counter++;
});
$("#removeButton").click(function () {
if(counter==1){
alert("No more textbox to remove");
return false;
}
counter--;
$("#TextBoxDiv" + counter).remove();
});
$("#getButtonValue").click(function () {
var msg = '';
for(i=1; i
Подробнее здесь: https://stackoverflow.com/questions/917 ... ith-jquery