tags:

views:

27

answers:

0

hi, i am jquery newbie. and looking for something to do this:

i have a form with hidden input like:

my php get the value 0 for pictures 1 for galleries and 2 for youtube, then process the upload or link in youtube case.

looking how to change between these 3 statements in input value. this is my prehistoric code: :P 1
2
3

$("#select button").click(function () {
   var text = $(this).text();
   $("input[name=upload]").val(text);
});

it works but i want to change the title in button and show or hide a div wich contains more info about type of upload.

thanks and any help is appreciated.