Skip to content

Commit

Permalink
Update input string
Browse files Browse the repository at this point in the history
  • Loading branch information
muath-ye committed Aug 3, 2022
1 parent fabafff commit 13649bb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions resources/views/components/forms/string-input.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<div>
<input name="{{ $name }}" {{ !isset($type) ?'': "type=$type" }} {{ !isset($class) ?'': "class=$class" }} {{ !isset($id) ?'': "id=$id" }} {{ !isset($placeholder) ?'': "placeholder=$placeholder" }}
onchange="stringInputUpdated(this)" />
<input
onchange="stringInputUpdated(this)"
name="{{ $name }}"
{{ !isset($type) ?'': "type=$type" }}
{{ !isset($class) ?'': "class=$class" }}
{{ !isset($id) ?'': "id=$id" }}
{{ !isset($placeholder) ?'': "placeholder=$placeholder" }}
/>

<script>
function stringInputUpdated(element) {
Expand Down

0 comments on commit 13649bb

Please sign in to comment.