CountryTrash
Member
Hi there, so I created a workaround for the problem to cancel a FileUpload!!,
I added a button for each FileUpload field I have and wrote a .js to ajax_function which calls an update query to replace the filename with a blank ('')
This actually works!!!
Now I want to let the oke know what is happening but I do not want to add a FileName element for each one again.
Now I want to manipulate the button's Label to indicate whether a file is attached or not.
How do I update the Label of an ELement using js?
form_X.formElements.get('tablename___cost').update(t);
I added a button for each FileUpload field I have and wrote a .js to ajax_function which calls an update query to replace the filename with a blank ('')
This actually works!!!
Now I want to let the oke know what is happening but I do not want to add a FileName element for each one again.
Now I want to manipulate the button's Label to indicate whether a file is attached or not.
How do I update the Label of an ELement using js?
form_X.formElements.get('tablename___cost').update(t);