jquery - Combining two separate javascripts so that they both still work -


I have two scripts that I want to use at the same time:

1.

  $ (document) .ready (function () {$ (". tabContent") No. (": first"). hide (); $ ("ul.tabs li: first addClass ("active"). Show (); $ ("ul.tabs li") Click (function () {$ ("ul.tabs li.active"). removeClass ("active"); $ (This) $ ($ ('a', this) .attr ("href"). FadeIn ('fast'); return back;});});   

2.

  $ (function () {$ ("#dialog") .dialog ();});   

However, when I just put one after another in JSFDL, then they both do not work. What is the correct way to put both of these snippets into a single JSfield box and be able to work them out?

They should be fixed immediately after another. Are you sure there is no other error? In addition, $ (function () {...}); and (document) .ready (function () {...}); The same thing is that you post $ ("#dialog") .dialog () after your click listener in the first part of the code; .

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -