Got it resolved! Thanks anyway! On Tuesday, April 4, 2023 at 11:12:14 AM UTC-7 Riley Bidondo wrote:
> As the title suggests, what I'm trying to accomplish is have a drop down > with a list of videos. Once the user makes a selection the embedded video > on the page changes to the video selected. > > Example: https://prnt.sc/d8VElh0pr_NY > > Example of the HTML I have working on a website I made, but want to > transfer to TiddlyWiki. With <script> tags not working in TiddlyWiki, I'm > not sure how to accomplish the same thing.. > <optgroup label="Keypads"> <option value="SL4shuPWRnE">Arm/Disarm</option> > <option value="HuzCY5OsznM">Cancel/Verify</option> <option > value="gPOC3d29aAo">Door Chime</option> > > Javascript from my website > <script> $("#dynamic_select").change(function(){ var val = $(this).val(); > $("iframe").attr("src", function(i, a){ return > a.replace(/(?<=embed\/)[^?]+/, val); }); > console.log($("iframe").attr("src")); }); </script> > > This then triggers this section of the HTML for the embed to change the > embed YT video. > <iframe src="https://www.youtube.com/embed/SL4shuPWRnE?vq=hd1080 > rel=0&showinfo=0"> > > Any suggestions would be greatly appreciated. > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/f44216a6-aa15-4007-b787-fb5076a04871n%40googlegroups.com.

