Hi all,
I've a slider container in my form. When that slider is clicked, an event is fired and a div inside a custom code (that is placed inside the slider) is filled using ajax.
The problem is that in this custom code I've an input field, and everytime I click this input field the slider event is fired.
I don't want that.. I want that the slider event is fired only when I click the slider's title.
Is possible to create an onclick event that is fired ONLY on the Slider title ?
Many thanks
I've a slider container in my form. When that slider is clicked, an event is fired and a div inside a custom code (that is placed inside the slider) is filled using ajax.
The problem is that in this custom code I've an input field, and everytime I click this input field the slider event is fired.
I don't want that.. I want that the slider event is fired only when I click the slider's title.
Is possible to create an onclick event that is fired ONLY on the Slider title ?
Many thanks
Hi Luca91,
Hard to tell what is happening when you post no details of your code :-(
I suggest that you can use a more specific selector to limit the click to the slider; or you could modify the code to check what is being clicked and do nothing if it is the input.
Bob
Hard to tell what is happening when you post no details of your code :-(
I suggest that you can use a more specific selector to limit the click to the slider; or you could modify the code to check what is being clicked and do nothing if it is the input.
Bob
Well there ins't much code to post sorry😟 it is basically JS function call event placed on Events in the desinger.
That JS function make an ajax request and fill the custom code inside the slider.
How can I specify to do nothing when the input field is clicked ? I tried to use an onclick on the field, but the slider event is still fired.
Many thanks Grey😉
That JS function make an ajax request and fill the custom code inside the slider.
How can I specify to do nothing when the input field is clicked ? I tried to use an onclick on the field, but the slider event is still fired.
Many thanks Grey😉
Hi Luca91,
Sorry, it's pretty much impossible to say anything more from the information here :-(
Bob
Sorry, it's pretty much impossible to say anything more from the information here :-(
Bob
This topic is locked and no more replies can be posted.