How do I make the java script read the value of $info ?
$(document).ready( function() {
$("#anyvalue").focus( function() {
if ( $(this).val()=="<?php echo $info['anyvalue'];?> ") {
$(this).val('');
}
});
});
This code clears the default value of the text when the user clicks on the textbox.
HTML code
<input id="anyvalue" type="text" value="<?php echo $detail ['firstname'];?>">
spacecharacter after<?php echo $info['anyvalue'];?>. Also ask a clear questin. what do u want to do ?