Ricky Barnes has Published 119 Articles

How to set new value for an attribute using jQuery?

Ricky Barnes

Ricky Barnes

Updated on 13-Feb-2020 09:47:58

730 Views

The jQuery attr() method is used to get the value of an attribute. It can also be used to set new value. We will set new value of attribute href to tutorialspoint.com/html5 from tutorialspoint.com/css.You can try to run the following code to learn how to set new value for an attribute ... Read More

How to change the value of an attribute using jQuery?

Ricky Barnes

Ricky Barnes

Updated on 13-Feb-2020 09:46:57

8K+ Views

The jQuery attr() method is used to get the value of an attribute. It can also be used to change the value. In the example, we will change the attribute value tutorialspoint.com to tutorialspoint.com/java.You can try to run the following code to learn how to change the value of an ... Read More

How can I know which radio button is selected via jQuery?

Ricky Barnes

Ricky Barnes

Updated on 13-Feb-2020 07:37:01

253 Views

Use the jQuery val() method to get the value of the selected radio button. You can try to run the following code to learn how to know which radio button is selected via jQuery −ExampleLive Demo           jQuery Selector             ... Read More

How to select element with specific class and title attribute using jQuery?

Ricky Barnes

Ricky Barnes

Updated on 13-Feb-2020 07:33:37

2K+ Views

If your element is having a class and title attribute, still you can select it with jQuery. You can try to run the following code to learn how to select element with specific class and 'title' attribute using jQuery.ExampleLive Demo           The Selector Example   ... Read More

How to use a variable in a string in jQuery?

Ricky Barnes

Ricky Barnes

Updated on 12-Feb-2020 12:53:46

4K+ Views

jQuery is a JavaScript library introduced to make development with JavaScript easier. Let us see how to use variable in a string using the html() method.ExampleYou can try to run the following code to learn how to use variable in a string in jQuery −Live Demo   ... Read More

Priority Inversion

Ricky Barnes

Ricky Barnes

Updated on 31-Jan-2020 10:27:54

9K+ Views

Priority inversion is a operating system scenario in which a higher priority process is preempted by a lower priority process. This implies the inversion of the priorities of the two processes.Problems due to Priority InversionSome of the problems that occur due to priority inversion are given as follows −A system ... Read More

Critical Section Problem

Ricky Barnes

Ricky Barnes

Updated on 31-Jan-2020 09:55:43

98K+ Views

The critical section is a code segment where the shared variables can be accessed. An atomic action is required in a critical section i.e. only one process can execute in its critical section at a time. All the other processes have to wait to execute in their critical sections.A diagram ... Read More

Running vs Waiting vs Terminated Process

Ricky Barnes

Ricky Barnes

Updated on 31-Jan-2020 09:51:44

643 Views

A process is an active program. It can also be said as a program that is under execution. It is more than the program code as it includes the program counter, process stack, registers, program code etc.A process passes through different states as it executes. A diagram that illustrates all ... Read More

How to get the POST values from serializeArray in PHP?

Ricky Barnes

Ricky Barnes

Updated on 20-Dec-2019 06:20:34

3K+ Views

To get the POST values from serializeArray in PHP, use the serializeArray() method. The serializeArray( ) method serializes all forms and form elements like the .serialize() method but returns a JSON data structure for you to work with.Let’s say we have the PHP content in serialize.php file:ExampleThe following is an ... Read More

How to change first and last elements of a list using jQuery?

Ricky Barnes

Ricky Barnes

Updated on 18-Dec-2019 07:35:28

781 Views

To change the first and last elements of a list use the eq() method.ExampleYou can try to run the following code to change first and last elements of a list using jQuery:Live Demo    $(document).ready(function(){    $("#list li:eq(2)").after($("#list li:eq(0)"));  });     This ... Read More

Advertisements