Skip to content
Advertisement

Tag: laravel

how to pass $(this).data() in ajax request

i need to pass $(this).data into success func in ajax. here is my code But $(this).addClass(‘wishlist-comp-saved’); is not working inside success: function(data) {} Answer $(this) will change context when called. When inside of the success: function (data), $(this) is not the same as it was inside of whatever is calling this $.ajax() request. For your issue, you simply have to

jQuery get selected option from combobox [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 5 months ago. Improve this question I have a combobox like this after that, I have a checkbox. If

How to use defer and make JS plugin working as well

When I use defer on app.js, there is a js plugin not working properly. If I remove defer, although the plugin works, but there is a warning to ask me to use defer, and I don’t know what to do. This is the test.blade.php If I use <script src=”{{ asset(‘js/app.js’) }}” defer></script>, then the x-mask plugin will not working. If

Advertisement