Found 7680 Questions for Front End Technology

Using HTML control and SAPUI5 controls and advantages of using UI5 controls over HTML controls

Paul Richard
Updated on 14-Feb-2020 05:31:09
Here are answers to your questions:a) Can we use both SAPUI5 and HTML controls at the same time or is it better to use SAPUI5 alone?The best practice would be to use SAPUI5 alone. If there are any controls, that you are not able to find in SAPUI5, then you can use HTML controls along with them. Also, it is advisable to keep looking for latest version of SAPUI5 as each release have new functions and control which may be useful for you.b) I found some controls in SAPUI5 which are already present in HTML. So what is the advantage ... Read More

How to submit a form using jQuery click event?

Amit D
Updated on 17-Feb-2020 05:53:22
To submit a form using jQuery click event, you need to detect the submit event. Let’s submit a form using click event and without using click event.ExampleYou can try to run the following code to learn how to submit a form using jQuery click event −Live Demo $(document).ready(function(){     $(function() {    $('#submit1').click(function(e) {         e.preventDefault();         $("#Demo").submit();     });    $('#submit2').click(function(e) {         e.preventDefault();         $("#Demo").submit();     }); }); });     Team             Submit

How to align two divs horizontally in HTML?

Amit D
Updated on 17-Feb-2020 05:37:56
To align two divs horizontally in HTML, use the float CSS property with left value. You can try to run the following code to learn how to align divs horizontally −ExampleLive Demo .demo div {     float: left;     clear: none; }               div1                    India            US            UK            Australia                         div2                    1            2            3            4            

How to place two divs next to each other in HTML?

Amit D
Updated on 17-Feb-2020 05:20:28
With CSS properties, you can easily put two next to each other in HTML. Use the CSS property float to achieve this.With that, add height:100px and set margin.ExampleYou can try to run the following code to place two side by side −Live Demo HTML div First DIV Second DIV

How to set background color in jQuery?

Amit D
Updated on 11-Dec-2019 07:59:07
To set the background color using jQuery, use the jQuery css() property. We will set background color on mouse hover with the jQuery on() method.ExampleYou can try to run the following color to set background color in jQuery.Live Demo $(document).ready(function(){     $("body").on({         mouseenter: function(){             $(this).css("background-color", "gray");         },       });     }); Move the mouse pointer on the page to change the background color.

How to change the background color using jQuery?

Amit D
Updated on 11-Dec-2019 08:04:36
To change the background color using jQuery, use the jQuery css() property. We will change background color on mouse hover with the jQuery on() and css() method. ExampleYou can try to run the following code to learn how to change background color using jQuery:Live Demo $(document).ready(function(){     $("body").on({         mouseenter: function(){             $(this).css("background-color", "gray");         },                   mouseleave: function(){             $(this).css("background-color", "red");         },                 dblclick: function(){             $(this).css("background-color", "yellow");         }     }); }); Double click and move the mouse pointer to change the background color.

How to remove underline from text hyperlink using jQuery?

Amit D
Updated on 11-Dec-2019 08:05:30
To remove underline from text hyperlink on hover using jQuery, use the jQuery css() property. The color text-decoration property is used with value none.ExampleYou can try to run the following code to learn how to remove underline from text hyperlink:Live Demo           jQuery Text Decoration                              $(document).ready(function() {             $('a').hover(                                function () {                   $(this).css({"text-decoration":"none"});                });                          });                    a {            text-decoration: underline;          }                         Demo text                

How to underline a Hyperlink on Hover using jQuery?

Amit D
Updated on 11-Dec-2019 08:17:41
To underline a hyperlink on hover using jQuery, use the jQuery css() property. The color text-decoration  property is used.ExampleYou can try to run the following code to learn how to underline a hyperlink on hover:Live Demo           jQuery Hyperlink Decoration                              $(document).ready(function() {             $('a').hover(                                function () {                   $(this).css({"text-decoration":"underline"});                });                          });                   a {            text-decoration: none;          }                         Demo text                

How to change the 'text-decoration' property with jQuery?

Amit D
Updated on 11-Dec-2019 08:12:16
To change text decoration property with jQuery, use the jQuery css() property.ExampleYou can try to run the following code to change text-decoration property from underline to overline:Live Demo $(document).ready(function(){     $("p").on({         mouseenter: function(){         $(this).css({"text-decoration": "overline"});         }     });     }); p {    text-decoration: underline; } Move the mouse pointer on the text to remove underline and add overline.

How to remove underline with jQuery?

Amit D
Updated on 11-Dec-2019 08:11:27
To remove underline from a text in jQuery, use the jQuery css() method. The css property text-decoration property is used with none value.ExampleYou can try to run the following code to remove underline:Live Demo $(document).ready(function(){     $("p").on({         mouseenter: function(){         $(this).css({"text-decoration": "none"});         }     });     }); p {    text-decoration: underline; } Move the mouse pointer on the text to remove underline.
Advertisements