skip to Main Content

Add parameter to href using jQuery

I have a link that looks like this. <a id="link" href="../customer_record/?id=1&customer_id=2"></a> I also have an input box as the following. <input type="text" id="search"> I am trying to get jQuery to add a parameter to the link as the user types…

VIEW QUESTION

Jquery – Bootstrap Toasts instead of Bootstrap alert in Laravel

I am currently using Bootstrap Alert to show the message in laravel application @if(Session::has('message')) <div class="alert alert-{{ session('class') }} alert-dismissible fade show rounded-0" role="alert"> <i class="fa fa-{{ session('icon') }}"></i> {{ session('message') }} <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button> </div> @endif But…

VIEW QUESTION

Run jQuery on page load

I have the following jQuery that runs as a user types in an input box. var $rows = $('#table tbody tr'); $('#search').keyup(function() { var val = '^(?=.*\b' + $.trim($(this).val()).split(/s+/).join('\b)(?=.*\b') + ').*$', reg = RegExp(val, 'i'), text; $rows.show().filter(function() { text =…

VIEW QUESTION
Back To Top
Search