Dynamically altering the SearchPane placeHolder text for all SearchPanes

Dynamically altering the SearchPane placeHolder text for all SearchPanes

mpellmpell Posts: 3Questions: 0Answers: 0

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

  • allanallan Posts: 61,669Questions: 1Answers: 10,096 Site admin

    You mean the CSS styling? You could override any styling that you don't like.

    Allan

Sign In or Register to comment.