I think that using Math.round() would suit best your needs:
$(.ui-selected).css('font-size', Math.round(maxFont * percentage) + px);
parseInt(12.9) // 12
Math.round(12.9) // 13
--
Massimo Lombardo
Linux user #437712
://macrabbit.com/espresso/
[6] http://fileability.net/coffee/sugar/jQuery
--
Massimo Lombardo
Linux user #437712
If the string pattern is always the same -- i.e. nothing but the inner
text changes -- then you can simply use a regular expression.
I think this will help you: http://www.regular-expressions.info/examples.html
--
Massimo Lombardo
Linux user #437712
other plugin I can use?
Hi there.
What about using some basic CSS? :)
#targetElementId {
position: fixed;
bottom: 0;
}
--
Massimo Lombardo
Linux user #437712
alert(jQuery + jQuery.fn.jquery + has loaded successfully
and is up and running!);
}
};
document.documentElement.appendChild(scriptLoader);
Hope it's what you're looking for.
--
Massimo Lombardo
Linux user #437712
To help us understand better, I think you should post the relevant
XHTML as well.
--
Massimo Lombardo
Linux user #437712
Please, using plain English only, explain what you want to do.
Then we'll try to help ;)
The glitch is probably caused by the fact that the two input fields
*do* share the same name; then when you touch one, you *do* alter
both! Bug or feature?
As far as I got it, (and pretending that I got it
Here's a simple pattern:
var counter = $('element0').length;
$('element1').text(counter);
$('element2').click(function () {
$('element1').text(counter--);
});
Live example: open a live JavaScript console (like Firebug if you're
using Firefox), then paste the following
Yeah, that's what I mean ;)
That's why I explicitly cited IEEE754 in my reply instead of saying
something like «heh, you know, it's that weird javascript thing with
numbers» :)
On Wed, Jul 8, 2009 at 04:53, RobGrobg...@gmail.com wrote:
On Jul 7, 9:14 pm, Massimo Lombardo unwiredbr
...@googlemail.combrightdad...@googlemail.com wrote:
Hi Experts,
I am trying to conditionally test what the value of href is equal to.
like this;
if($(this).find('a').attr(href)==map.html){
alert(yes);
}
This doesn't work. Do anyone knows what i am doing wrong.
Psuedocode please.
--
Massimo
at
it.
On Tue, Jul 7, 2009 at 12:11, weidcmueller.juli...@googlemail.com wrote:
hi,
thats my code:
endpreis =Math.round(endpreis*100)/100;
to round the price of something but i'd like to have 2,00 or 2,50
instead of 2 and 2,5.
i'd be happy about any help.
--weidc
--
Massimo Lombardo
Linux
!!
--
Massimo Lombardo
Linux user #437712
://developer.mozilla.org/en/DOM/Selection
http://msdn.microsoft.com/en-us/library/ms535869.aspx
--
Massimo Lombardo
Linux user #437712
13 matches
Mail list logo