i try to add a placeholder on the title and description box.
I try this script already but its not working!
Hope someone can help me for the right way!
<script type="text/javascript">
$( document ).ready(function() {
$('#title').attr("placeholder", "test");
$('#description').attr("placeholder", "test");
});
</script>
<div id="item-post-title" class="item-post-title">
<label class="control-label" for="title[<?php echo osc_current_user_locale(); ?>]" style="width: auto;display: inline-block;">
<span class="required_fields">* </span>
<?php _e('Title', 'ctg_housing'); ?>
(<?php printf(__('max %s chars','ctg_housing'),$max_character_length_title); ?>)
</label> <span id="Tcounter"></span>
<?php ItemForm::title_input('title',osc_current_user_locale(), osc_esc_html( ctg_housing_item_title() )); ?>
</div>
<div id="item-post-description" class="item-post-description">
<label class="control-label" for="description[<?php echo osc_current_user_locale(); ?>]" style="width: auto;display: inline-block;">
<span class="required_fields">* </span>
<?php _e('Description', 'ctg_housing'); ?>
(<?php printf(__('max %s chars','ctg_housing'),$max_character_length_description); ?>)
</label> <span id="Dcounter"></span>
<?php ItemForm::description_textarea('description',osc_current_user_locale(), osc_esc_html( ctg_housing_item_description() )); ?>
<?php if(!osc_plugin_is_enabled('richedit/index.php')){ ?>
<?php } ?>
</div>
Thanks