I am trying to use this code in a .js HOOK file, with no success...
I am just trying to change a "1" to a "5", using java.
if ('#abc' == 1){
$j('#abc') = '5';
}
Buck
if then in java
-
- AppGini Super Hero
- Posts: 336
- Joined: 2015-12-23 16:52
Re: if then in java
javascript, not java - different languages and completely unrelated
Try this:
Try this:
Code: Select all
$j(function(){
if ($j('#abc).val() == 1 ) $j('#abc').val(5);
});
Re: if then in java
grimble... thanks, that works (however, I added an apostrophe after the first #abc).
Also, for letting me know that I should be looking into javascript and not java.
"Best" to the family...
Buck
Also, for letting me know that I should be looking into javascript and not java.
"Best" to the family...
Buck
-
- AppGini Super Hero
- Posts: 336
- Joined: 2015-12-23 16:52
Re: if then in java
Right, sorry about the typo.