Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What will be the output of the following jquery ? $("div").css("width","300px").add("p").css("background-color","blue");

user-image
Question added by Mohd Nadeem Mohd Rehman Mohammed , Software Engineer , Softworx Technologies
Date Posted: 2016/09/30
Saud Rashid
by Saud Rashid , Project Manager , Buzytech IT Solutions

The above js code will set the width of all available DIVs to 300px and set the background-color of all all available DIVs and P tags to BLUE.

Hamzeh Salhi
by Hamzeh Salhi , Front End Developer , Reserveout

the div will takepx width and p  background blue

Dhinesh Ramalingam
by Dhinesh Ramalingam , Project Manager , HOD Technologies FZCO

This above code will set the width of available div elements to 300px and add blue background color for all div and p elements.

khalid agouddar
by khalid agouddar , .NET DEVELOPER , GOWEB

set a width of 300px  for all div elements and blue for the back-ground color of all the p and div elements

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.