Ask questions and get good answers on jQuery

Hi Mateo, I think my idea was bad. The abc index... What I need is to be able to select a country from a drop-down and do the gotopage thing. Do you think it would work, else how should I do? See page http://www.iwmc-group.com/lang/en/credit-bureaus.html

this was your previous answe Hi Dalia,

Yes, you should remove the "pageIndex" element from your page and repace it with your custom list. For each element on your list add an onclick function:

$("#[your scrollable ID]").goToPage([page index])

for example:

a b c ...

Let me know if this solve your needs, bye, Matteo

asked Jul 19 '10 at 15:06

Dalia's gravatar image

Dalia
373

edited Jul 20 '10 at 15:38

Matteo%20Bicocchi's gravatar image

Matteo Bicocchi ♦♦
1776129


Hi Dalia, maybe the combo could be the right solution for you;

just make your combo as follow:

    <select name="country" onChange="$("#myScroll").goToPage(this.options[this.selectedIndex].value)">

<option value="1">Argentina</option>
        <option value="1">Armenia</option>
        <option value="1">Australia</option>
        <option value="1">Austria</option>

<option value="2">Bahrain</option>
        <option value="2">Belgio</option>
        ....

</select>

This should work fine for you. Bye, Matteo

I realized that there's something wrong on Safari;

here is the 1.6.0 update with the Safari bugfix:

http://github.com/pupunzi/jquery.mb.scrollable/zipball/1.6.0

answered Jul 20 '10 at 08:57

Matteo%20Bicocchi's gravatar image

Matteo Bicocchi ♦♦
1776129

edited Jul 20 '10 at 21:36

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×3
×2

Asked: Jul 19 '10 at 15:06

Seen: 181 times

Last updated: Jul 20 '10 at 21:36

jQuery main site - Matteo Bicocchi