I create a model form using ct-js-productForm library but now i want to open that model using on click event. Right now when i refresh the page bydefault the model is open.I want to open that model using on click event.
<a href="#" id="register"><i class="fa fa-plus-square"></i> Register</a>
<div class="ct-popupForm ct-js-productForm" id ="Registration">
<div class="container">
<form role="form" class="center-block" method="POST">
<div class="form-group">
<div class="ct-form-content">
<div class="row">
<div class="col-md-6">
<label>First Name</label>
<input type="text" required class="form-control input-lg" value="Kristine" placeholder="">
<label>Last Name</label>
<input type="text" required class="form-control input-lg" value="Black" placeholder="">
<label>Number of Properties</label>
<input type="text" required class="form-control input-lg" value="15" placeholder="">
<label>Include contact form?</label>
</div>
</div>
<button type="submit" class="btn btn-success center-block">Save changes</button>
</div>
<div class="ct-form-close"><i class="fa fa-times"></i></div>
</div>
</form>
</div>
</div>
<script>
$(function(){
var options = {
"backdrop" : "static",
"show":true
}
$("#register").on("click", function(){
console.log('hi');
$('#Registration').modal(options);
});
});
</script>