How do I pass multiple data for search
How do I pass multiple data for search
lilmer
Posts: 1Questions: 1Answers: 0
Hello, I have a problem passing variable to on data for filtering.
I have this code for ajax to pass data but it only pass 3 data like:
filter[data_one]
filter[data_two]
filter[data_three]
and the others does not.
ajax:{
type: 'post',
url: '/pod/get',
showLoader: true,
data: function(d){
d.tab = $('.nav-tabs .active').attr('id');
d.filter = {
data_one: $('#data_one option:selected').val(),
data_two: $('#data_two').val(),
data_three: $('#data_three').val(),
data_four: $('#data_four').val(),
data_five: $('#data_five').val(),
data_six: $('#data_six').val(),
data_seven: $('#data_seven').val(),
data_eight: $('#data_eight').val(),
data_nine: $('#data_nine').val()
}
return d;
}
},
Can anybody help me, or if any have any solution for advance multiple key search, I can't find one.
Thank you
This discussion has been closed.
Answers
I would say your best bet is to enable the
search.regex
.Once regex is enabled, you can search for multiple values
(kinda|like|this)