prevent users from entering char in textbox after clicking submit button
-
i want when user click on submit button then a div layer will be generated over the textbox whose height and width will be just the same as textbox and in this way textbox will be blocked for entering something. i want to do it by javascript. in this scenario other textbox will not be blocked.
tbhattacharjee
-
i want when user click on submit button then a div layer will be generated over the textbox whose height and width will be just the same as textbox and in this way textbox will be blocked for entering something. i want to do it by javascript. in this scenario other textbox will not be blocked.
tbhattacharjee
Sir, I completely understand your requirement. But I think creating a div above the textbox may not be a good idea. Insted you can just make that particular textbox disabled. In that way he wont be able to modify thosed etails, and it is really very easy to implement this using Jquery or Javascript. $('#div_id).attr('disabled', 'true'); And it will be taken care of.
-
i want when user click on submit button then a div layer will be generated over the textbox whose height and width will be just the same as textbox and in this way textbox will be blocked for entering something. i want to do it by javascript. in this scenario other textbox will not be blocked.
tbhattacharjee
I think you can set the input text-box to disable status to prevent user enter the new text. please use the like below code:
document.getElementById("YourID").disabled=true;
modified on Friday, November 19, 2010 2:39 AM
-
i want when user click on submit button then a div layer will be generated over the textbox whose height and width will be just the same as textbox and in this way textbox will be blocked for entering something. i want to do it by javascript. in this scenario other textbox will not be blocked.
tbhattacharjee
You can make text box as disable or readonly.
sunaSaRa Imdadhusen +91 99095 44184 +91 02767 284464