Setting a jQuery Plugin Param with an if statement?
-
Okay so I'm new to javascript and was wondering if this is possible. I am using a jQuery plugin that calls for a parameter that I want to be dynamic. I want the param to be 'xy' if var a > 5 otehrwise i want to param to be 'yx'. How do i go about writing this in the plugin parameters? Is this possible? Did the question make sense? Thanks in advance!
-
Answer:
Yes, it makes sense.... Good luck!
SBJLuke at Yahoo! Answers Visit the source
Related Q & A:
- How to open a file in external editor programmatically in eclipse plugin development?Best solution by Stack Overflow
- How to open a partial view from controller as a Jquery Mobile dialog?Best solution by Stack Overflow
- How to fire a function before and after automatically in a jquery plugin?Best solution by catchmyfame.com
- how to add a form with a unique id on jquery?Best solution by Stack Overflow
- How do you uninstall a plugin?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.