Scenario There is an HTML table on a web page which shows a details of students in a class. In order to add a new student record to this table, there should be a button. When this button is clicked, a new row should be inserted at the end of the table. This can be […]
Any element is highlighted due to its background-color property. By default this property has NO value, hence the element is not highlighted when it is at first added to the page. If we change the value of this property, we are easily able to highlight the element. For highlighting an element (such as a table […]
There are many operations which we have to perform on select boxes (or drop downs) such as selecting an option based on index, selecting an option based on visible text, removing an option etc. using jQuery. Most of the times, we do not remember the selectors or methods to accomplish the required task and we […]
Suppose we have more than two input boxes on which we want to apply calendar. A jQuery datepicker can be applied to an input box using: $(“#calendarField”).datepicker(); Where we have used the id of element (after “#”).