I have navbar with 2 buttons where i want when click specific button to open their form, but seems javascript is not working.
As code is big im giving you a snippet for form and navbar on demo please check bellow:
Here is DEMO
I have post my whole css so there you can see some junk stuff.
I have try with bootstrap modals but still is not working.
[BUTTON] = ID/Class of the button. [FORM] = ID that you gave the form.
$(document).ready(function(){
$("[BUTTON]").on("click", function(){
$("[FORM]").fadeIn();
});
});
Or you can do it with change the css
$(document).ready(function(){
$("[BUTTON]").on("click", function(){
$("[FORM]").css('display', 'block');
});
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.