Category: Technology

Jquery Selectors With examples

Jquery Selectors With examples Following are the important Jquery Selectors Sno Selector Name Description Example Result 1 #id Select elements with id. $(document).ready(function(){ $(“#idname”).css(“background-color”,”yellow”); }); <p id="idname">My name is Donald.</p> My name is Donald. I live in Duckburg. 2 .class Select all elements with class name. $(document).ready(function(){ $(“.classname”).css(“background-color”,”yellow”); }); <p class="classname">My name is Donald.</p> My name is Donald. I live in Duckburg. 3

Jquery Selectors

Jquery Selectors With examples Following are the important Jquery Selectors Sno Selector Name Description Example Result 1 #id Select elements with id. $(document).ready(function(){ $(“#idname”).css(“background-color”,”yellow”); }); <p id="idname">My name is Donald.</p> My name is Donald. I live in Duckburg. 2 .class Select all elements with class name. $(document).ready(function(){ $(“.classname”).css(“background-color”,”yellow”); }); <p class="classname">My name is Donald.</p> My name is Donald. I live in Duckburg. 3

Jquery Important & Built-in Functions With examples

Jquery Important & Built-in Functions With examples Following are important JavaScript functions Sno Method Description Example 1 charAt() Returns the value at the specified index. var str = “eenadupost”; var res = str.charAt(0); document.write(res); Output = e returns the specified index value. 2 concat() Combines the two string. var str1 = “eenadu”; var str2 =

Jquery Tutorials and examples

Jquery Tutorials and examples Jquery Is a javascript library. Created By John Resig in 2006. Before write any jquery code must we need to include Jquery Library Local Installation download jQuery library.and include it in html code. CDN Based Version directly include it jquery cdn url in html code. https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js → 1. First Example In