Skip to main content

Posts

Showing posts from March, 2012

CSS Change Jquery : i am javascript

.css() – jQuery API "Description: Set one or more CSS properties for the set of matched elements. version added: 1.0.css( propertyName, value ) propertyNameA CSS property name. valueA value to set for the property. version added: 1.4.css( propertyName, function(index, value) ) propertyNameA CSS property name. function(index, value)A function returning the value to set. this is the current element. Receives the index position of the element in the set and the old value as arguments. version added: 1.0.css( map ) mapA map of property-value pairs to set. As with the .prop() method, the .css() method makes setting properties of elements quick and easy. This method can take either a property name and value as separate parameters, or a single map of key-value pairs (JavaScript object notation). Also, jQuery can equally interpret the CSS and DOM formatting of multiple-word properties. For example, jQuery understands and returns the correct...

How to select form input elements using JQuery

How to select form input elements using JQuery: Select Textbox using jQuery – $(‘input:text’) Select a textbox field using JQuery $('input:text');   Select a textbox value using JQuery $('input:text').val();   Set a textbox value using JQuery $('input:text').val("New Text");   2. Select Password using jQuery – $(‘input:password’) Select password field using JQuery $('input:password');   Select password value using JQuery $('input:password').val();   Set password value using JQuery $('input:password').val("New Text");   3. Select Textarea using jQuery – $(‘textarea’) Select a textarea field using JQuery $('textarea');   Select a textarea value using JQuery $('textarea').val();   Set a textarea value using JQuery $('textarea').val("New Text in Textarea");     4. Select Radio Buttons using jQuery – $(‘input:radio’) Select a radio button field using JQuery $('input:radio'...