Quantcast
Channel: jQuery Forum
Browsing latest articles
Browse All 114 View Live

Re : How to color each active tab a *different* color?

I’m just showing you the way to do it yourself.  http://jsfiddle.net/jakecigar/9aggxy72/2/ combines #tab1.ui-tabs-active { JΛ̊KE

View Article



Re : How to color each active tab a *different* color?

OOOOOOHHHH!!!!!!!  Changed my code and it works!! Instead of trying to target the anchor I just needed an id attribute on each tab's list item element! That's what I was missing. THANK YOU SO MUCH!!...

View Article

Re : How to color each active tab a *different* color?

It’s hard to know which tag gets the colors. I use the web inspector to see what is there, modify it dynamically then update my CSS when it looks good. You should too! JΛ̊KE

View Article

Re : How to color each active tab a *different* color?

I have been, I live in Chrome's developer tools. It just didn't occur to me to give each tab's list item an id. So typical, I jump directly to attempting more specificity in my CSS rather than stepping...

View Article

Need help to create function of drag div or text in jquery.

Hi all, I am using jquery for draging a div. still it working on div id base but i want use as function like mydrag('div1'){ // } please help me.. <html><head> <meta...

View Article


Re : Need help to create function of drag div or text in jquery.

Your coordinates function is wrapping its parameter in $() , so you can pass in anything that jQuery accepts, i.e. any string-based selector, any DOM element, another jQuery object.

View Article

Re : Closing/Removing a Tab from the viewport, dynamically

You don't indicate how you trigger the closing of a tab. Basically, you just need to identify the index of the tab you want closed and then call the 'remove' method with that value.

View Article

Re : How to add more than one image in a single box using drag and drop?

It's not clear whether you want multiple images to appear in each drop zone, or just to track what images have been dropped where . In the latter case, just update the ID boxes rather than overwriting...

View Article


Re : How to add more than one image in a single box using drag and drop?

my goal is a multiple images in each drop zone not just a swap..and when two or more image are dropped. I want to automatically resize the images to fit in the drop zone...at the same time track what...

View Article


Re : How to add more than one image in a single box using drag and drop?

Try this then . It resizes the images based on the number present and updates the list of IDs.

View Article

Re : How to add more than one image in a single box using drag and drop?

thanks master...that solves the topic

View Article

Re : How to add more than one image in a single box using drag and drop?

If you set the image width as follows then you maximise the image size:     images.width((100 / Math.ceil(Math.sqrt(images.length || 1))) + '%');

View Article

Re : How to add more than one image in a single box using drag and drop?

sir... how to do this situation... I want only 3 images per line in drop zone.... the 4,5,6, images in next line of dropzone...

View Article


Re : How to add more than one image in a single box using drag and drop?

Just restrict the maximum value of the image count to 3: images.width((100 / Math.min(images.length || 1, 3)) + '%');

View Article

Transition from JavaScript alerts to jAlert?

Hi! I'm working on a quiz-like game for a website. You enter letters into separate fields to spell a word. If the word is right, you get a "congratulations" dialogue; if it's not, the dialogue tells...

View Article

Browsing latest articles
Browse All 114 View Live


Latest Images