Hello World, I was having one weird issue with an Android device and that is key code value is 229 and I wanted to prevent it. What I wanted to Achieve? The numeric keyboard on android device The keyboard can only press 0-9 digits no dot or no + - or anything limit character to 4 digit What is the problem? I was using onKeyUp or onKeyDown and more, but I was getting 229 or couldn't get the value at all. We will use the regex to validate the value and on the basis of value, we will set value. So let's look at a running example of this: See the Pen Android-226-input by Parth Makadiya ( @parthmakadiya12-the-flexboxer ) on CodePen . Link: 1. Full Page view - https://codepen.io/parthmakadiya12-the-flexboxer/full/zVEoEG 2. https://stackblitz.com/edit/android-226-input Open it in Mobile and see codes.
So in this article we will see how to use FontAwesome without having a lot of code and manipulate the styles So How font awesome works It has its own Fonts It has its own css classes . then we import font awesome and write so these fa and fa-facebook classes are defined in their css file and they will show it to you Lets Do How we can manipulate if we want something else out of it 1. Import this css in your CSS file at the top @import url("http://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css"); 2. in html define your class 3. in css create myIconClass .myIconClass{ content: "\f000"; font-family: FontAwesome; font-style: normal; font-weight: normal; text-decoration: inherit; /*--adjust as necessary--*/ color: #000; font-size: 18px; padding-right: 0.5em; position: absolute; top: 10px; left: 0; } change the content You can inspect element on chrome and read...
Q -- Simple On click of table cell change the value and revert back after 2 seconds. Level-Beginner | Language-Javascript =======Think and try it yourself first ======= So finally you came in solution section . Let's see what we are doing 1.Checking Table is not null 2.we are using two for loop to pass through every element. 3.Now we are triggering onClick event 4.then we use this keyword to access the innerHTML value 5.Then we are using setTimeout function
Comments