- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Kristi Castro has Published 104 Articles
Kristi Castro
2K+ Views
To add a new list element under a ul element, use the jQuery append() methodSet input type text initiallyValue: Now on the click of a button, add a new list element using the val() and append() methods in jQuery:$('button').click(function() { var mylist = $('#input').val(); $('#list').append(''+mylist+''); return false; ... Read More
Kristi Castro
3K+ Views
To make a jQuery function call after “X” seconds, use the siteTimeout() method.On button click, set the following and fade out the element. Here, we have also set the milliseconds. This is the delay that would occur before fading an element:$("#button1").bind("click", function() { setTimeout(function() { $('#list').fadeOut();}, ... Read More
Kristi Castro
2K+ Views
Use event delegation to include buttons for both add a new and delete a table row on a web page using jQuery.Firstly, set the delete button:XTo fire event on click of a button, use jQuery on() method:$(document).on('click', 'button.deletebtn', function () { $(this).closest('tr').remove(); return false; });The following is the ... Read More
Kristi Castro
12K+ Views
Database SecurityDatabase security has many different layers, but the key aspects are:AuthenticationUser authentication is to make sure that the person accessing the database is who he claims to be. Authentication can be done at the operating system level or even the database level itself. Many authentication systems such as retina ... Read More
Kristi Castro
2K+ Views
In a distributed database management system, the database is not stored at a single location. Rather, it may be stored in multiple computers at the same place or geographically spread far away. Despite all this, the distributed database appears as a single database to the user. A diagram to better ... Read More
Kristi Castro
358 Views
A transaction consists of a series of commands executed in the database. Each command in a transaction is atomic i.e it cannot be split further into sub commands. Any command in the transaction may or may not change the structure of the database.Also, the changes required by the transaction must ... Read More
Kristi Castro
6K+ Views
A deadlock occurs when two or more processes need some resource to complete their execution that is held by the other process. In the above diagram, process 1 has resource 1 and needs resource 2. Similarly process 2 has resource 2 and needs resource 1. Each of these processes needs ... Read More
Kristi Castro
1K+ Views
To insert a new row into table at a certain index, use the jQuery val() and insertBefore() method. You can try to run the following code to learn how to insert new row into table −ExampleLive Demo jQuery Example $(document).ready(function(){ ... Read More
Kristi Castro
1K+ Views
To set the content of an iframe without src, use the jQuery html() method. You can try to run the following code to learn how to set the content of an iframe without src attribute −ExampleLive Demo jQuery Selector ... Read More
Kristi Castro
74 Views
To get the children of the $(this) selector, use the jQuery find() method. You can try to run the following code to get the children of the $(this) selector −ExampleLive Demo jQuery Example $(document).ready(function(){ $('#mydiv').click(function(){ alert($(this).find('img:last-child').attr('src')); }); ... Read More