-5

**I need to use this element val to select a row from database using Laravel Blade like the attachment img pls

enter image description here

Syfer
  • 4,262
  • 3
  • 20
  • 37
Mohammad
  • 1
  • 1
  • Share your error and code in text format – Onic Team Jul 25 '17 at 12:48
  • 1
    Your logic is circular. The value of the `#frm` element is based on a query which is based on the value of the `#frm` element (ignoring the fact that this wouldn't work anyway because you're mixing client-side and server-side code). – apokryfos Jul 25 '17 at 13:43
  • Please don't upload pictures of code on StackOverflow. – milo526 Jul 25 '17 at 14:40
  • Also, see [this question on calling Php from JavaScript](https://stackoverflow.com/q/7165395/1218980). – Emile Bergeron Jul 25 '17 at 15:02

1 Answers1

0

You can't, you will need to use ajax requests to do this.

Please read this article on the differences between client and server side programming.

Jerodev
  • 32,252
  • 11
  • 87
  • 108