I have a number of textbox elements on a page named with ids in the format:
creUpload_inp_txt_multiDescription_0
creUpload_inp_txt_multiDescription_1
creUpload_inp_txt_multiDescription_2
creUpload_inp_txt_multiDescription_3
etc.
I want to loop through them and replace their text (value)
'John has a red car'
to
'John has a blue car'
If someone could kindly educate me how to do this, it will get me off the runway to do everything else I require by myself. Just not sure how to reference elements without a precise name (elements have been pre named by code which produced the page - not my code) or how to tackle the text replace correctly.
Any help much appreciated. Many thanks for reading.
creUpload_inp_txt_multiDescription_0
creUpload_inp_txt_multiDescription_1
creUpload_inp_txt_multiDescription_2
creUpload_inp_txt_multiDescription_3
etc.
I want to loop through them and replace their text (value)
'John has a red car'
to
'John has a blue car'
If someone could kindly educate me how to do this, it will get me off the runway to do everything else I require by myself. Just not sure how to reference elements without a precise name (elements have been pre named by code which produced the page - not my code) or how to tackle the text replace correctly.
Any help much appreciated. Many thanks for reading.
Comment