I have textbox with generated html
<input id="datePicker" class="date hasDatepicker" type="text" value="" name="date">
$(document).ready(function () {
var data = $("#datePicker").val();
$(".dateBtn").click(function (event) {
FetchDetails(data);
})
....
Onclick textbox is populated at the page but no value is being sent to the FetchDetails function. What I am doing wrong here?
Thanks