• Re: How to set draggable ="true" through Javascript ?

    From Fidelis Mundia@21:1/5 to All on Wed Jul 6 02:42:18 2022
    On Wednesday, July 11, 2012 at 10:07:44 AM UTC+3, til@k wrote:
    hii ,

    I am creating a div dynamically through javascript . so i need to set property through only. Can anybody tell how to set the draggable ="true" for a div through javascript. I tried with this not working properly.
    (htmlElement.draggable = true;)

    Plz help
    Thanks in Advance
    const div = document.createElement("div")
    div.setAttribute("draggable", true)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?B?SMOkcnJhIFJhYm1v?=@21:1/5 to All on Wed Jul 6 09:12:53 2022
    Hey guy. Would You want to get rich with me doing programming? If yes, call me !!!!!!!!!

    ✆☎☏📱📞 : 372 53900660


    til@k kirjutas Kolmapäev, 11. juuli 2012 kl 09:07:44 UTC+2:
    hii ,

    I am creating a div dynamically through javascript . so i need to set property through only. Can anybody tell how to set the draggable ="true" for a div through javascript. I tried with this not working properly.
    (htmlElement.draggable = true;)

    Plz help
    Thanks in Advance

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)