Category "jquery"

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

Exception: org.springframework.web.bind.MissingServletRequestParameterException: Required String parameter 'params' is not present

When i clicked the edit button the values from dataTable should display in form. But somehow it doesn't work. Below are my codes for reference. Call DataTable:

Adding custom CSS and JS to Shopify

I am working on getting vertical tabs for a page on Shopify, using the 'Atlantic' theme. As this theme does not have vertical tabs by default, I have used the

How to get current time with jQuery

The following returns time in microseconds, for example 4565212462. alert( $.now() ); How do I convert it to a human readable time format, such as (hours:mi

Timing in JS - multiple setIntervals running at once and starting at the same time?

Let's say I have a function: myFunc = function(number) { console.log("Booyah! "+number); } And I want it to run on a set interval. Sounds like I should use

Auto resizing the SELECT element according to selected OPTION's width

I've got this select element with different option in it. Normally the select element would get its width from the biggest option element, but I want the select

Debugging ajax flow

I am really confused on a program that I made. A few days ago, it was working just fine, but now I am having problems with initializing it. I think I've figured

Not allow Korean character(Hangul) for input text

I want to allow typing Latin Characters but I don't want user can type Korean Hangul characters. Please help me answer. Thank you in advance.

Popup Window and PHP form

I've created a contact page and a separate PHP page to receive the posted data. I'd like to make the PHP open in a popup window. I've tried methods online witho

Detecting where a submit event came from with jQuery

I need to detect how a user submitted a form to generate some statistics. They can either press enter when typing on the input or they could click the submit bu

how to catch scroll event caused by hash bang anchor link?

I am just wondering if there's a better way to approach this So, say you have jump to link using anchor tag: www.example.com/#about opening that link will ma