Last post Mar 10, 2006 08:19 AM by muntyanu
Mar 09, 2006 05:53 PM|muntyanu|LINK
Got a problem accessing elements from jscript by ID. Noticed that dnn added some prefix to element ID. If I need to get element by
document.getElementById("reservationDataGrid") I do not get element unless I provide prefixed name: dnn_ctr369_Appointments_reservationDataGrid
But if ctrl ID "369" changes I have to change that ID in all places.
I would greatly appreciate if someone can hint me about some workaround
Thanks a lot in advance
Mar 09, 2006 06:06 PM|StrongTypes|LINK
You can use the ClientID property of a control to get the ID assigned to the control at runtime.
Mar 10, 2006 08:19 AM|muntyanu|LINK
Thank you very much, it works for me !