Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Submit button
Message
 
 
À
29/03/2019 14:04:08
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
AngularJS
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01667712
Message ID:
01667734
Vues:
30
I tried this:
 this.model.lbLayoutId = selectedValue;
        const button = $("#generateLabelButton")
        if (button)
        {
            button.click();
        }
But nothing happened (e.g. my code from the button was not executed). Also, not clear if that button was really found properly and not empty object was created instead.

>>I have another question. There is another button on that form of type submit which becomes available when the value is selected.
>>
>>Do you think if I try to programmatically call the click of that button, the form will submit or most likely not?
>>
>>In other words, for now I changed the type of my button back to button but I need to somehow figure a way to submit the form after the original code of that button is executed and the value is selected.
>
>You can programmatically create and\or click a submit button.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform