Ricky Barnes has Published 121 Articles

How to add a title in anchor tag using jQuery?

Ricky Barnes

Ricky Barnes

Updated on 13-Feb-2020 09:54:55

2K+ Views

To add a title in anchor tag in jQuery, use the prop() method. The prop() method is used to set properties and values of the selected elements.You can try to run the following code to learn how to add a title in anchor tag using jQuery −ExampleLive Demo         ... Read More

How to add and remove a class to an anchor tag with jQuery?

Ricky Barnes

Ricky Barnes

Updated on 13-Feb-2020 09:48:48

1K+ Views

To add and remove a class to an anchor tag, use the toggleClass. Using it you can add and remove a class on a click.You can try to run the following code to learn how to add and remove a class to an anchor tag with jQuery −ExampleLive Demo   ... Read More

How to set new value for an attribute using jQuery?

Ricky Barnes

Ricky Barnes

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

536 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

7K+ 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

163 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

1K+ 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

3K+ 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

7K+ 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

72K+ 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

471 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

Advertisements