Tuesday, 3 September 2013

How to get html content of a input tag?

How to get html content of a input tag?

I have an input tag:
<input type="text" value="04/09/2013" class="date-time-date width-100
hasDatepicker" name="booking_info[to_time_24_date]" id="to_time_24_date"
readonly="readonly">
i need to get all the content in input tag (all content shown above) but
when i use
$('#to_time_24_date').html();
it returns nothing. How can i get this content?

No comments:

Post a Comment