How to create dynamically tooltip using AJAX in Laravel?
I’ve got table, each element of table has it own ID, stored in <div id="[numbers]" hover="tooltip(this.id);"></div>
For each element I want to “create” or display tooltip(for displaying data like name
, date
, etc.).
Is it possible? This is what I’ve got at the moment:
// blade.view
function test(id)
{
$.ajax({{
type: "GET",
url: "{{ route('box.getData') }}",
success: function(data){
alert("working");
}
}});
}
Route:
Route::get('/box', 'AppHttpControllersBoxController@getData')->name('box.getData');
How to proceed with that in Controller?