How to get value from search box in sMessage?

How to get value from search box in sMessage?

reubenmkreubenmk Posts: 15Questions: 0Answers: 0
edited May 2012 in General
I have a requirement where i have to display the text in the search box(if any) in the smessage.Below is the current code for my table. I believe $('div.dataTables_filter input').val() will give me the value.Please correct me if i am wrong.But where shud i place the code for getting the value in my below code?
[code]
$(document).ready( function () {
$('#tradesum').dataTable( {
"sScrollY": "400px",
"bPaginate": false,
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sSwfPath": "copy_cvs_xls_pdf.swf",
// "aButtons": ["copy","xls",{"sExtends": "pdf","sPdfOrientation": "landscape" } ]
"aButtons": [
{
"sExtends": "print",
"sMessage": ' Trades Summary from <%=str%>(mm/dd/yyyy) to <%=fstr%>(mm/dd/yyyy) Filter:__________',
"bShowAll": true
},
{
"sExtends": "copy",
"sButtonText": "Copy to Clipboard"
}
,{
"sExtends": "xls",
"sButtonText": "ExporttoExcel"
} ]
}
} );
} );
[/code]
This discussion has been closed.