I’m using twitter bootstrap. I want modal to be shown by clicking on a link using javascript.
$("#my-link-id").click($(this).modal());
However, the code above causes an error of
Uncaught Error: HIERARCHY_REQUEST_ERR: DOM Exception 3
What did I do wrong?
You are calling the method
modalbefore the user click’s#my-link-id, the fix:or:
To see an explanation on the error you can read here: What exactly can cause an "HIERARCHY_REQUEST_ERR: DOM Exception 3"-Error?