I have a webcam link that I need to place on the page:
$('#chattools').append('<a href="javascript:void(0)"
onclick="javascript:webcam(\''+to+'\');">webcam</a>');
them problem is that I want to add this link disabled, that the user cannot click on it. after a condition I want to enable the click using another JS.
it can be done using jquery or js.
I tried to add disabled on href but nothing happens. any ideas how to do this?