Kristi Castro has Published 104 Articles

How to add a new list element under a

Kristi Castro

Kristi Castro

Updated on 20-Jun-2020 13:20:17

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

How to make a jQuery function call after “X” seconds?

Kristi Castro

Kristi Castro

Updated on 20-Jun-2020 13:12:17

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

How to delete a row from a table using jQuery?

Kristi Castro

Kristi Castro

Updated on 20-Jun-2020 13:01:15

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

Security, Integrity and Authorization in DBMS

Kristi Castro

Kristi Castro

Updated on 20-Jun-2020 09:53:55

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

Distributed Database Management System

Kristi Castro

Kristi Castro

Updated on 20-Jun-2020 09:47:11

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

Definition of Transaction in Database

Kristi Castro

Kristi Castro

Updated on 20-Jun-2020 08:47:21

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

Deadlocks in DBMS

Kristi Castro

Kristi Castro

Updated on 20-Jun-2020 08:21:23

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

How to insert new row into table at a certain index using jQuery?

Kristi Castro

Kristi Castro

Updated on 20-Jun-2020 08:09:28

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

How can I set the content of an iframe without src using jQuery?

Kristi Castro

Kristi Castro

Updated on 20-Jun-2020 08:08:20

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

How to get the children of the $(this) selector in jQuery?

Kristi Castro

Kristi Castro

Updated on 20-Jun-2020 08:07:11

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

Previous 1 ... 3 4 5 6 7 ... 11 Next
Advertisements