Hello following is the model of my div when I open the modal without this piece of code then You receive the actual element like shoud to jQuery version: document.write (Webcam.get_html (320, 240)); The modal opens up successfully, but when I put the code mentioned above, it opens, opens the new page and
document.write content in that page. Please tell me how I can modify the following div so that it shows the
document.write (webcam.get_html (320, 240));
webcam.get_html (320, 240) inside the modal is a command of the jpegcam plugin that runs the webcam of the laptop or the similar, I also have a simple text
document.write (" Abcd "); And when the modal opens, it shows ABCD on the new page. Please help, thanks,
& lt; Div style = 'display: none' id = "modal-content" & gt; & Lt; Script language = "javascript" & gt; Document.write (webcam.get_html (320, 240)); & Lt; / Script & gt; & Lt; / Div & gt;
document.write Doing so, you are trying to add content, and enter HTML in it:
document.getElementById ('modal-content'). InnerHTML = 'accessories to add here';
$ ('# modal-content'). Html ('accessories to add here');
No comments:
Post a Comment