My question seems to be a little hard to understand but is pretty simple and I'm sure the solution is pretty simple too.
I have one Gridview that can Edit and Update. We all know that when we click on edit if the column is setted to ReadOnly = "True" a default Textbox control will appear...
I can return values from that Textbox's dynamically created by click on Edit button of Gridview, that's all good...
My question is: I want add the javascript code to that dynamically textbox created when the edit button is clicked inside the gridview.
This is the javascript code to a Datepicker show when a textbox is clicked:
<head runat="server">
<link rel="Stylesheet" type="text/css" href="css/jquery.datepick.css" />
<script type="text/javascript" src="js/jquery.datepick.js"></script>
<script type="text/javascript" language="javascript">
$(function () {
$('#Textbox_Name').datepick({ dateFormat: 'dd/mm/yyyy' });
});
</script>
</head>
Now, Instead of put the textbox name on that code first i want know the name of my gridview edit textbox dynamically created and then show the datepicker on that textbox