ilan Expert Licensed User Longtime User May 3, 2021 #1 hi, first, thank you very much @Erel for this great library i think it is very powerful for creating WebApps. i would like to know how the jQUeryElements are created and if i have control over them. i understand that they are created from any HTML element with an id attribute but HTML elements that are created in runtime cannot be referenced. is there a way to re-call the function that generates the jquery elements and like this create a reference in b4x like stored in a list or something like this. or maybe if i already know the id that i will put i create a jqueryelement named "el1" and after adding the element in runtime I can refer to it. is it possible to extend the jquery function and maybe reference with classes and not only with id's? thanx
hi, first, thank you very much @Erel for this great library i think it is very powerful for creating WebApps. i would like to know how the jQUeryElements are created and if i have control over them. i understand that they are created from any HTML element with an id attribute but HTML elements that are created in runtime cannot be referenced. is there a way to re-call the function that generates the jquery elements and like this create a reference in b4x like stored in a list or something like this. or maybe if i already know the id that i will put i create a jqueryelement named "el1" and after adding the element in runtime I can refer to it. is it possible to extend the jquery function and maybe reference with classes and not only with id's? thanx
Erel B4X founder Staff member Licensed User Longtime User May 3, 2021 #2 You can create elements at runtime and later access them with ws.GetElementById or GetElementBySelector. Check this example: https://b4x.com:51041/dynamic/index.html The code is in Dynamic class in the server example: [WebApp] Web Apps Overview Upvote 0
You can create elements at runtime and later access them with ws.GetElementById or GetElementBySelector. Check this example: https://b4x.com:51041/dynamic/index.html The code is in Dynamic class in the server example: [WebApp] Web Apps Overview
ilan Expert Licensed User Longtime User May 3, 2021 #3 Erel said: ws.GetElementById or GetElementBySelector. Click to expand... how could i missed that??? so many night and days i spent finding the solution and it was just in front of me ? thank you! Upvote 0
Erel said: ws.GetElementById or GetElementBySelector. Click to expand... how could i missed that??? so many night and days i spent finding the solution and it was just in front of me ? thank you!