ruby on rails - How to autofill billing information? -
so, have app has user subscriptions. in case user associated organization , required fill in organization address. there's billing info section checkbox says "check if same name , organization address". when checkbox clicked i'd port on , autofill of address details i.e. state, country etc... organization address.
how might this? i've looked , coudn't find simple implementation.
see billing_information checkbox code below:
<div class="checkbox click"> <input id="check1" type="checkbox" value="check1" name="check"> <label for="check1" style="color:#fff !important;" class="checkbox_label"> check if same name , organization address</label> </div> <div class="form-group"> <div class="row"> <div class="col-md-12"> <input type="text" class="form-control-input address" placeholder="address"> </div> </div> </div> <div class="form-group"> <div class="row"> <div class="col-md-12"> <input type="text" class="form-control-input city" placeholder="city"> </div> </div> </div> <div class="form-group"> <div class="row"> <div class="col-md-6 col-xs-6"> <input type="text" class="form-control-input state" placeholder="state/province/region"> </div> <div class="col-md-6 col-xs-6"> <input type="text" class="form-control-input zip_code" placeholder="zip/postal code"> </div> </div> </div> <div class="form-group"> <div class="row"> <div class="col-md-6 col-xs-6" style="color:#fff; font-size:20px;"> <button type="submit" class="btn btn-primary btn-lg continue-button">update</button> or <a href="#" class="cancel-t" data-dismiss='modal'>cancel</a> </div> </div> </div>
thanks!
ruby-on-rails html5 css3 ruby-on-rails-4
No comments:
Post a Comment