Message from JavaScript discussions

November 2020

— Which works better, wins, right


I don't like buying products I like investing in solutions or some crap. Like, whatever works sometimes. But for me what works plays nicely with open hardware and software platforms and if it doesn't then you're out.

— $("#bxs li").click(function () {
var value = $(this).attr('id').replace("-", "");

$("#dialog").data("clickedfrom", value ).dialog("open");
//return false;


// Okay button from the dialog.

$(".okaybtn").click(function () {
var $dialog = $("#dialog");
// value is the variable from the previous function
localStorage.setItem( $ "clickedfrom" ), "test");
//return false;


Message permanent page

— How can i get the variable value in the second?

— Thanks

— Post it on stackoverflow

— How to get data from scope B to C🤨

— Homework: you have variables named A,B,C. the task is to swap values that held in B and C.

— Oooh oke

— Now I get it

— [b, c] = [c, b] should work? Iirc

— Nope, you should use A explicitly, not implicitly