Retriving values to Onclick
Posted: Thu Nov 30, 2017 4:50 pm
Hi,
i have a output field like [xyz123]. it will retrieve some data from database, it was hidden, i want to pass that information to the onclick Event, before when it was not hidden i tried " var test = document.getElementById('xyx123').innerHTML;" i got the data but when it was hidden i was unable to retrieve the data, is there any way to assign directly variable in onclick event.
Anyhelp would be appreciated.
Thanks
Kiran.
i have a output field like [xyz123]. it will retrieve some data from database, it was hidden, i want to pass that information to the onclick Event, before when it was not hidden i tried " var test = document.getElementById('xyx123').innerHTML;" i got the data but when it was hidden i was unable to retrieve the data, is there any way to assign directly variable in onclick event.
Anyhelp would be appreciated.
Thanks
Kiran.