Skip to main content

Bug Tracker

Side navigation

#14377 closed feature (plugin)

Opened September 20, 2013 12:42PM UTC

Closed September 20, 2013 01:14PM UTC

Last modified September 20, 2013 02:36PM UTC

We don't want to write rgb in if statements, make this function in next edition , please ! :)

Reported by: anon Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 2.0.0
Keywords: Cc:
Blocked by: Blocking:
Description

Hello, I realized the code below doesn't work and it's needed to write rgb, please make the code below work in the next editions, it would be very helpful ! if css background color is red, jquery should be able to recognize it ! Thank you! Keep up the good job!

http://jsfiddle.net/TcSQ8/31/

$(document).ready(function(){

$(".box").click(function(){

if ($(".box").css("background-color") == "red")

{

$(".box").html("Success!");

}

});

});

Attachments (0)
Change History (4)

Changed September 20, 2013 01:14PM UTC by scottgonzalez comment:1

resolution: → plugin
status: newclosed
type: bugfeature

Changed September 20, 2013 02:30PM UTC by anonymous comment:2

Is it possible to integrate this plugin into next jquery editions?

Changed September 20, 2013 02:32PM UTC by anonymous comment:3

Hello, I realized the code below doesn't work and it's needed to write rgb, or extra plugins like this. https://github.com/jquery/jquery-color

Can you please take into consideration of next jquery so that it's possible that jquery reads the code below without any external plugin?

http://jsfiddle.net/TcSQ8/31/

$(document).ready(function(){

$(".box").click(function(){

if ($(".box").css("background-color") == "red") {

$(".box").html("Success!");

}

});

});

Changed September 20, 2013 02:36PM UTC by dmethvin comment:4

We have no plans or desire to incorporate existing plugins into jQuery core. The whole idea of jQuery is to be extensible. Is there some problem with your page adding a plugin for functionality that you require, but few others need on a regular basis? In general it should not be necessary for jQuery code to query colors of elements. Instead you should be using class names.