Add input values to ajax data
Add input values to ajax data
This does not work: (partial code)
"ajax": {
                "data": {
                    "SearchViewModel.Inspection": $('#SearchViewModel_Inspection')
                },
}
This works: (partial code)
"ajax": {
                "data": {
                    "SearchViewModel.Inspection": 'test'
                },
}
How can I push my input value to the form?
This discussion has been closed.
            
Answers
Typo: $('#SearchViewModel_Inspection').val()
It submits the value, but when i type in a new value in the input the old value is still there. I somehow need to refresh the ajax data attribute
Solved it.