[Solved] Adding a ‘Thank You’ popup after I click ‘Submit’ on Bootstrap Modal form? [closed]

listen to the form submission event $(‘form’).submit(function (e) { var form = this; e.preventDefault(); setTimeout(function () { form.submit(); }, 10000); // in milliseconds $(“<p>thank you for your submittion</p>”).appendTo(“body”); }); or try this: $(“#submission_button”).on(“click”, function(e) { e.preventDefault();//prevent default action }); 1 solved Adding a ‘Thank You’ popup after I click ‘Submit’ on Bootstrap Modal form? [closed]

[Solved] Submit child component from parent component modal ok button in angular [duplicate]

each time you wanna handle action in child component from parent component like submit you have two choice one create service and subscribe to the actionStatus property export class CtrlActionService { private actionStatus = new Subject<any>(); constructor() {} //ctrl submit action public callAction() { this.actionStatus.next(true); } public getAction(): Observable<boolean> { return this.actionStatus.asObservable(); } } parent.component.ts … Read more

[Solved] How do I make a button stay “Pressed” after clicking

my sulotion (need to use a Directive) –html button.component.html <button class=”btn btn-danger” style=”width: 110px” appButton” ></button> –Typescript button.directive.ts @Directive({ selector: ‘[appButton]’ }) export class ButtonDirective implements OnInit { constructor(private elRef: ElementRef, private renderer: Renderer2) { } ngOnInit() { } @HostListener(‘mousedown’) onmousedown(eventData: Event) { if (this.elRef.nativeElement.style.backgroundColor === ‘blue’) { this.renderer.setStyle(this.elRef.nativeElement, ‘background-color’, ‘rgba(200,0,0,0.7)’); } else { this.renderer.setStyle(this.elRef.nativeElement, … Read more