Skip to content

Is it possible using laravel-html to create link that includes onclick js? #201

Discussion options

You must be logged in to vote

I believe you can use the generic attribute method.

html()->a()->attribute('onclick', 'return confirm("' . trans('modules/storage_ingests.confirm_deletion') . '")');

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@levaconline
Comment options

Answer selected by levaconline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants