jquery - Why is this code running before the 'click' event? -


I have a simple issue

This is a function:

There is a function: click

 

Is there any way to stop this code from running before the 'click' event? Thanks!

Edit:

Complete jquery code:

  $ (document) .ready (function () $ ( $ ("# Tag connect"}); $ ("# tagctxbox") Multiple selections ({minimum content: 130, selected list: 5, showheader: wrong}); $ ('# box Show $ ('#color box'). ({Height: 'toggle'}, 400, function () {// complete animation}}}}; $ ('# test') .colorPicker (Default color: 0, the default color (optional) column index: 13, click on the number of columns (optional): function (c) {$ ('# BoxShow'). CSS ("background -color", c);}}};});  

Edit: Also, after making some changes here, this is the final version that it should be made sufficient for many 'colorable' items:

If you If you want to try for yourself, you can download the color picker plugin from the Syrenex site.

P> If I think I'm not sure What's your colorpinker plugin, I would say try to comment on lines that click on that control, because it can trigger a click for that control

 

It looks like all your tags are divs , try to change the click event function

  $ ('($ $ Target.is (' # boxShow ')) $ $ (' #color box ') (function (e) {var $ target = $ (e.target). ({Height:' Toggle ' }, 400, Function () {// code that will run after the click});} else {// do div e.preventDefault ();}}) work anywhere for a click;  

If that works then there is something else wrong with the code you posted.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -