help me plz: button one click django(disable the submit button )

216 views
Skip to first unread message

hanin guesmi

unread,
Jun 18, 2021, 10:44:39 PM6/18/21
to django...@googlegroups.com
Hi 
i am trying to disable send data when click in the second time in the button
my template.html
 <form method="POST" enctype="multipart/form-data" id="id"
      {% csrf_token %}
      {% bootstrap_form form %}
   
 <div><button type="submit" id="btnSearch">submit</button></div>                                       
         </form>  

Garanti sans virus. www.avast.com

DJANGO DEVELOPER

unread,
Jun 18, 2021, 11:58:45 PM6/18/21
to django...@googlegroups.com
you can apply javascript to perform this action.

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABqiOL-3gAqMUry0k8P7__naavRT6d-jPvVobiJNvq91dvGbyA%40mail.gmail.com.

hanin guesmi

unread,
Jun 19, 2021, 7:59:35 AM6/19/21
to django...@googlegroups.com
I. Tried many codes but not working 

vvk

unread,
Jun 19, 2021, 8:19:00 AM6/19/21
to django...@googlegroups.com
Hi all pls make one Wtapp group or Instagram group  bevause mail box not sufficient to solve 

--

Prasad Ajmire

unread,
Jun 19, 2021, 8:19:04 AM6/19/21
to django...@googlegroups.com

Kasper Laudrup

unread,
Jun 19, 2021, 3:43:57 PM6/19/21
to django...@googlegroups.com
On 19/06/2021 13.58, hanin guesmi wrote:
> I. Tried many codes but not working 
>

Try a few more. You know how when you've lost something, you always find
it the last place you look?

It's the same with codes. It's always the last one you try.

Kind regards,

Kasper Laudrup

OpenPGP_signature

hanin guesmi

unread,
Jun 19, 2021, 3:58:45 PM6/19/21
to Django users
ok i will thnx

Kasper Laudrup

unread,
Jun 19, 2021, 4:29:04 PM6/19/21
to django...@googlegroups.com
On 19/06/2021 21.58, hanin guesmi wrote:
> ok i will thnx
>

You could spend the rest of your life doing that, so if you want someone
to help you, it might be a better idea to write a bit about what you've
tried, how it's not working etc.

Of course, that's completely up to you, but writing questions with a bit
of information usually helps getting closer to a solution and you might
end up learning something in the process.

Kind regards,

Kasper Laudrup

OpenPGP_signature
Reply all
Reply to author
Forward
0 new messages