1

Closed

Add a default text in a filter input

description

Hello
Please i want to ask you how to add a default text in the filter input "Enter your search text here" when I use PICNet filter table?
Closed Sep 25, 2010 at 8:20 AM by gatapia
Hi,Just set the 'filterToolTipMessage' property on the options obejct. Example:var options = {filterToolTipMessage: 'Enter your search text here'};$('#table).tableFilter(options);Tnx

comments

gatapia wrote Sep 25, 2010 at 8:20 AM

Hi,

Just set the 'filterToolTipMessage' property on the options obejct. Example:

var options = {
filterToolTipMessage: 'Enter your search text here'
};
$('#table).tableFilter(options);

Tnx

wrote Sep 25, 2010 at 8:20 AM

wassimcherif wrote Sep 27, 2010 at 8:07 AM

Hi,
I write this script in my page:
<script type="text/javascript"> $(document).ready(function() { // Initialise Plugin var options = { filterToolTipMessage: 'Enter your search text here', clearFiltersControls: [$('#cleanfilters')], }; $('#avis_concours').tableFilter(options); }); </script> and in my form I write this:
<div align="right"><a id="cleanfilters" href="#"><strong>Vider les filtres de recherche</strong></a></div> <table cellpadding="0" cellspacing="0" id="avis_concours" width="100%">
                                                <thead>
                                                    <tr>
                                                        <th filter='false'>Date publication</th>
                                                        <th >Title</th>
                                                        <th width="70" style="width: 70px;" filter-type='ddl'>Catégorie</th>

                                                        <th width="70" style="width: 70px;" filter-type='ddl'>Spécialité</th>
                                                        <th filter='false'>Nombre de postes ouverts</th>
                                                        <th filter='false'>Clôture des inscriptions</th>
                                                        <th filter='false'>Statut</th>
                                                        <th width="159" filter='false'>Actions</th>
</tr></thead>
<tbody>......

I Want to add yhis text in the " Title " Field but is not work !!
Please can you help me?
tnx

wrote Feb 13, 2013 at 7:19 PM

wrote May 16, 2013 at 2:02 AM