rizwansyed Posted December 12, 2018 Share Posted December 12, 2018 (edited) Hi I need to get some data whenever page loads (as it is static data not dynamic). I used onload event but it works only for first text box and i have many text boxes in other tabs also where i need to get data only once. I tried with addeventlistener but it has some dependency like , button click or clicking anywhere in document. I want is, load all the static data when ever webpage opens first time without clciking anything. I have 6 to 7 tabs where many textboxes are there and where the value should be dispalyed on webpage load Any suggestions how to proceed Edited December 12, 2018 by rizwansyed Link to comment Share on other sites More sharing options...
dsonesuk Posted December 12, 2018 Share Posted December 12, 2018 That's what onload should do? you tell it to call a function, that function would go through the textboxes by singular id, or loop through multiple textboxes by class names for example and updates the values to required value. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now