Skip to content
Advertisement

Tag: jquery

Perform Function when Element ID is Visible

I’m attempting to perform a function after an element ID becomes visible on a page. I want to make it so that when an element with the ID #discountbox becomes visible, then peform this function. This is the javascript I’ve created so far: Unfortunately, this does not appear to be working. Answer I’d tried you code here, and it works.

Perform Function After Element Is Revealed

I’m working on a website where a div tag reveals itself after enough products are selected. What I’m trying to do is add an ID to this div tag after it’s revealed using javascript. This is the tag that’s revealed: This is the javascript I’ve created: Unfortunately, this does not appear to be working. Answer Updated Try: CodePen

Select2 Closes Modal on Clicking it

I have 7 SELECT2 Elements on my Modal, at first, I was unable to search on the select2 elements. I then added this line of code when I’m about to show the Modal $(‘#my-select’).select2({ dropdownParent: $(‘#my-modal’) }), and I was able to search on the select elements. Now the problem is sometimes when I click on one of the options

Reading same textbox value each time from jquery popup

I have JQuery Popup whchi has a textbox. JQuery Popup trigger on OnClick event of a Checkbox. HTML My effort is to receive textbox value in server side C# Code and display it using an other jquery popup Server Side Code C# Problem My server side code can receive JQuery popup textbox value but every time i get the same

Playing soundfile when hovering over specific object

Can anyone understand what I’m doing wrong? This code returns the error that “songs is not a function”. Regards, Shape of Mustard Answer The problem was how you access to your object https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object Object properties must be accessed in the following ways songs.song1, or songs[‘song1’], the latter is useful in cases where the first character of the property is a

JQUERY DATEPICKER – exclude Sundays, specific dates AND disable next day selection after 12pm

I’m hoping someone here can help me with the following: – Currently, I have the following script for my datepicker snippet where I have excluded Sundays. I would like to add the following conditions: – Exclude multiple specific dates (i.e. 16/04/21, etc.) Disable next business day selection by customers AFTER 12pm. For point #2, I have the following code but

Advertisement