Skip to content
Advertisement

Tag: jquery

Unable to post data on Jquery ajax

My code to post data to server is like this on alert I am getting the data I want to post to server, But when I inspect the call on Chrome,I can see that data is not getting posted (screenshot added below). What can be the reason for this behavior? Answer jQuery does not expect you to pass an array

Image on load function in jQuery

I have pictures on the site I want to do (If the image has been downloaded, delete p) But I was surprised that ‘load’ has been removed from the new jQuery version Answer Your code works. I used JQuery Version 3.6.0 If you want just a special p to remove give the image an id That’s it. So include like

Full screen overlay menu toggle

I want to create a full screen overlay menu. I am not able to close the menu on anchor click eg. if we click on Home. It scrolls down to the section but does not close the overlay. I have tried adding some jquery but I am not able to do it. I have tried to toggle the menus as

not able to access the dynamic id in a table row

Inside a table <td> I have put this code and not able to fetch the id inside the td. Id can not be fetched and not able to pass the id in href. Answer Code works if you rename the id to myId. There is likely a window.id that is shadowing your variable

How to calculate percentage in this JQuery

I have a problem in jQuery in html. Just need some changes in calculation, below are my codes All result will be calculated in one field as I did Existing: total = expenses – socso – kwsp The result i need is: total = expenses – socso – (kwsp / 100 * expenses) Thank you Answer As you can see

Advertisement