Hello.
im trying to use a variable for the alsoResize function but its not working.
when im using strings its working but even if i have a string in that variable i cant use it.
- $("#b").resizable({
- start: function(evn, ui) {
- $testvar = "#"+$(this).attr('number');
-
- },
- alsoResize: "" + String($testvar);
- });
can someone help?
i want to store variables in an attribute and read them.
the only way i found is this:
- $(".res").resizable({
- start: function(evn, ui) {
- $(".res").resizable( "option", "alsoResize", "."+$(this).attr("number") );
- }
- });
the only problem is that i have to click two times.