Javascript For Select Input Field Get link Facebook X Pinterest Email Other Apps - December 08, 2019 JavaScript 'Select Input Field DEC 09/19 ‘ <script type="text/javascript"> $(document).ready(function() { $('input').attr('required', true); }); </script> Get link Facebook X Pinterest Email Other Apps Comments
Check Your ageInDays by Javascript - March 03, 2020 <script type="text/javascript"> function ageInDays() { var birthYear = prompt('What year were your born ?'); var ageInDayss = (2020 - birthYear)*365; var h1 = document.createElement('h1'); var textAnswer = document.createTextNode('you are' + " "+ ageInDayss + " " + 'days old.') h1.setAttribute('id','ageInDays'); h1.appendChild(textAnswer); document.getElementById('flex-box-result').appendChild(h1); } </script> <style type="text/css"> .flex-box-container-1{ display: flex; border: 1px solid black; padding: 10px; flex-wrap: wrap; justify-content: space-around; } .flex-box-container-1 div{ /* border: 1px solid black;*/ align-items: center; padding: 10px; } .container-1{ border: 1px solid black; } </style> ... Read more
Overide the Edit Form from Active Admin - February 19, 2020 Add this line Path: project/admin/form.rb It look like: ActiveAdmin.registsr Form do form do | f | f . inputs "Label" do f . input : name f . input : address1 # etc end end end Read more
Comments
Post a Comment