+ 1
How to add Textbox infront of label in javaacript
6 odpowiedzi
+ 1
do you mean an input tag?
+ 1
do you want the javascript to create an input tag?
+ 1
try:
for (var i = 0; i < document.getElementsByTagName("label").length; i++) {
var input = document.createElement("input");
document.getElementsByTagName("label")[i].appendChild(input);
}
0
yes Sir
0
actually I am getting label dynamically....In MVC....and need to append Textbox in front of each label
0
success: function (response) {
if (response.length != 0) {
$.each(response, function (key) {
$("#divAwardStages").append("<label>" + response[key].StageName + "</label>");
});
}
}
});
};