Skip to content

Tag: jquery

Use an image as a mask for another image

I’m making a website that I wanted to be a white page that you could stamp to make another image appear under. So when you click, you make a holepunch. Like this exemple : So I managed to have a randomized image in the background as I click which is fine for what I want, and to be able to

Jquery click event not returning anything

My jquery is not alerting anything when I click the button with the id decrease. This is my code. I am using external js file. I tried doing this and it is working fine. This is the html code: what’s wrong with my first code snippet? Answer The value you pass to ready() needs to be a function. In your

JQuery onclick change z-index

Main Goal: “a page’s z-index to move to the most front once clicked and the most front to be behind the clicked one.” My approach: onclick change the clicked class z-index to the most front and subtract the current most front z-index by one ps: This is what I came up with but I’m not s…

how do make waiting for ajax to complete

I newbie. I have a function application for employment (apply-job).What I do is submit the request with an ordinary link, with a click-function applied on it but processing time is quite long. I want disable “#apply-job” avoid click too much or disable window and fade for ajax to complete. Thank. …

Call Javascript function on click of dynamic tab

I am new to MVC and I have not written a lot of jQuery/JavaScript. I am trying to call a JavaScript function on click of a nav-tab. The nav-tabs are added to the page dynamically. I know the “name” of the specific tab which I need to call the function when clicked, but for the life of me, I cannot

get the data from the datatable on click

How to get the data object on click the cell.I have created the table and used datatable.I want to get the geography and customer type from the cell click I have tried as my table id is table and I got the response as below in console for console.log(data1); Answer If you add a click event on td and click

Hide elements without knowing complete id

I have a table like below I want to hide all rows except row whose id contains id4. I won’t have full id. I came up with below jQuery code, but as I don’t have full id, it doesn’t work. How to filter with only half the id? Answer You can use the “Attribute starts with” selector t…