Text inside Search box
Use Drupal to communicate a translated string to Javascript:

drupal_add_js(array('my_string' =&gt; t('Default Text')), 'setting');


Then, have your jQuery read the value:

var str = Drupal.settings.my_string;