Dynamically altering the SearchPane placeHolder text for all SearchPanes
Dynamically altering the SearchPane placeHolder text for all SearchPanes
mpell
Posts: 3Questions: 0Answers: 0
in SearchPanes
I need to alter the SearchPane placeholder text, and am doing it like this based on a forum post I found:
initComplete: function () {
// Loop through SearchPane inputs to adjust placeholder text to remove HTML.
$('.dtsp-searchPane').find('input').each(function( index ) {
var placeholder = $( this ).attr('placeholder');
$( this ).attr('placeholder', placeholder.replace('<br>',' ').replace('\n',' '))
});
}
It works great.
Would be a nice feature option to be able to specify to remove any formatting and only show the text.
Replies
You mean the CSS styling? You could override any styling that you don't like.
Allan