I wrote some simple code :
var tm='<input type="checkbox" name="city[]" />';
tm=$(tm).val('2');
alert($(tm).text()); // <--- it does not have internal text so how do i see itself?
but when im alerting it alert me empty message.
I want to see :
<input type="checkbox" name="city[]" value="2"/>
in the ALERT