Before marking as a duplicate, I have looked at the following questions and nothing has worked for me.
jQuery click event requires double click to work
Click and double-click event firing (loosely realted)
I have a JQuery event that requires a single click in some instances and a double click in most others.
Please see the fiddle https://jsfiddle.net/SimonPrice/6e9acbo6/5/
In this fiddle you will see an accurate representation of the data, the expend and collapse functions do not work so I have removed their functions from the javascript window to avoid distraction from popups \ alerts.
In the fiddle you will see a table with a nested table that has nested tables. (Code I have inherited).
Using this code
$(document).ready(function () {
$(document).on('click', '.up', function () {
shiftRow($(this));
});
$(document).on('click', '.down', function () {
shiftRow($(this));
});
});
Which is the proposed answer from the first link I cannot get this to work and I am still having to double click.
I have also tried it on the document, table, tr and td elements as well as the class click event it self.
I need this to work on a single click and would be grateful if anyone can help me see the error that I am making.