Category "jquery"

Uncaught TypeError: Cannot read property 'length' of null when retrieving tags from wp

I am trying to use jquery autocomplete to retrieve tags from wordpress db First I set a function in wp: if ( ! function_exists( 'yourtheme_frontend_scripts' )

Slick JS as Swipe Tabs

I've found this code snippet : https://codepen.io/hani_ouni/pen/LZxKxG in it works perfectly on codepen.io but when I downloaded it and tried to run it on my

Select 2 "ajax results could not be loaded"

Sorry, but can't find a resolve. Whenever i try to do some searching, select2 will show 'The results could not be loaded'. I think my ajax settings is wrong

Insert "/" in MM/YYYY textbox on keypress event

I want to enter a "/" when user enters MM(2 digit) so it will be like MM/YYYY. I have done similar for credit card number input which insert a space after 4 di

Proper way to wait for one function to finish before continuing?

I have two JS functions. One calls the other. Within the calling function, I'd like to call the other, wait for that function to finish, then continue on. So, f

How to dynamically add a parent div (reparent) to a form without losing event handlers

I want to add a parent div to a form dynamically. No code is required, but here it is (simplified), before someone complains: <form id="fileupload" style

Not allowed to load local resource:

i want to stream online videos ..but i am facing j query error Not allowed to load local resource: ...i find many solution but that all did not work for me. he

How to dynamically add a parent div (reparent) to a form without losing event handlers

I want to add a parent div to a form dynamically. No code is required, but here it is (simplified), before someone complains: <form id="fileupload" style

How to use jQuery after downloading it using NuGet

I downloaded jQuery in Visual Studio 2017 using Install-Package bootstrap -Version 4.1.1 Now I have a dependency which includes jQuery 3.3.1, but when I move t

How to use jQuery after downloading it using NuGet

I downloaded jQuery in Visual Studio 2017 using Install-Package bootstrap -Version 4.1.1 Now I have a dependency which includes jQuery 3.3.1, but when I move t

Get content between second last and last slash

I have a url like the following http://localhost:8000/test/ What is the tidiest way of getting test from this using plain javascript/jQuery?

Uncaught SyntaxError: Unexpected identifier - importing jquery

i have a problem with import statements in my website project. try to use nodejs - typescript and jquery my project folder looks like that: Project node_modu

textbox value change event not getting fired jQuery

I am filling texbox value through ajax call. I want to change event get fired when the value gets filled. ajax call: $.ajax({ url: 'ajaxExecute.aspx/GetCust

Ajax GET request fails in laravel 8

when i try to send a GET request with tutorial ,but its not working and end up with 500 internal server error I cant find any error by searching on forum or sta

Chosen updated not working

I have a chosen dropdown. I changed options content and call trigger chosen:updated but Chosen don't rebuild the dropdown. This is my updated <select name

Resetting all fields in a form when it is opened

I have two forms that lies under two tabs in a portlet. When I click on tab 2 I want all fields in that form to be empty. I don't want a button. I tried with: f

if else with linked image

This might be a very simple one but been struggling a bit with it. if (getCookie("Account")=="True"){ ... } else { ... } I would like to add in the brackets

How to get ckeditor textarea value using jquery?

I am using ckeditor on textarea but i could not get data from it. Code : <textarea name="DSC" class="materialize-textarea"></textarea> <script&

object-fit: get resulting dimensions

When using the new CSS feature object-fit, how can I access the resulting dimensions that the browser has chosen by JavaScript? So let's assume foo.jpg is 100x

How to implement multiple tooltip show event using popper.js

How to implement multiple span with tooltip using popper.js HTML: <div class="panel-custom"> <span class="button" aria-describedby="tooltip">Tes