Hi Isaac,
-- Plz review and attempt sth like this sample:
as we have with any type of fields you like for user input :
sth.html
<input type="checkbox" />
<button> Click On </button>
<script>
const checkbox = document.querySelector('input[type=checkbox]');
const button = document.querySelector('button');
checkbox.onchange = () => {
if (checkbox.checked) {
button.onclick = () => { alert('Alert sth of user input. ');
};
}
};
</script>
If you asign any id of each input tag or type, you can map to db, that base on your declare and define.
On Mon, Feb 24, 2020, 10:31 maninder singh Kumar <maninder.s.kumar@gmail.com> wrote:
--On Mon, Feb 24, 2020 at 4:37 AM Rishabh Gupta <guptarishabh056@gmail.com> wrote:I can help give me checkout . You need to use of javascript .You can
take id from input field and place in value
On Sun, Feb 23, 2020 at 9:12 PM Isaac Ndutumo <isaacndutumu@gmail.com> wrote:
>
> Am working on a hospital system where the billing model requires users to select varies items from the bill list and post them by creating a receipt or an invoice. Am new in JavaScript programming combined with Django.
>
> Any help on below tasks will be highly appreciated
>
> Select all or few and post either as a receipt or invoice.
> Show total of selected items dynamically
>
>
> Find attached capture for bill view.
>
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1b59fa26-910c-4fb6-81c4-a7b38291abf7%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACpDem3efVDbusZHhJGWvLh_F1epgK4nEO2hNxe5%2BdnO5ObJDw%40mail.gmail.com.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABOHK3R71Jjz6TyB566ExsuA7bNk0FBEcYLf0vMoFuNV8TZwag%40mail.gmail.com.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAP5HUWp7Vjt2mfAwWg%3DGMNMvUcPb_KtVtYaeOCcKrYwfapsgQA%40mail.gmail.com.
No comments:
Post a Comment