Skip to content
Advertisement

Laravel On click Event Button [Enable button after upload file]

I have a table which contain two buttons, one is for uploading a file and the other one is for giving score. What I want to do is to give a condition for the second button which is the scoring button, whereby it can’t be clicked (disabled) if there is no file uploaded. How can I achieve this?

Here is what my table looks like:

enter image description here

And here is my AdminController for the table

JavaScript

And here is my blade file for the table

JavaScript

Thank you in advance.

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement