This is the way I was thinking so could you give me another example
without attributes (Just so I could learn a different way).
Thnaks

On Aug 23, 8:05 pm, MorningZ <morni...@gmail.com> wrote:
> MANY ways to do this, with this being one of them
>
> <button id="parsetablebutton" region="<?php echo $Region ?>">Some
> Text</button>
>
> then
>
> $("#parsetablebutton").click(function() {
>         var region = $(this).attr("region");  //<<-- the value from
> PHP
>
> });
>
> again, that's just one way of many
>
> On Aug 23, 6:04 pm, AMP <ampel...@gmail.com> wrote:
>
>
>
> > Hello,
> > I was using this:
> > onClick="parsetable('<?php echo $Region ?>')"
>
> > but now I want to use the JQuery:
> > $("#parsetablebutton").click( function() {
>
> > How do I pass the parameter to the function?
> > Would I set an attribute and read it with[att=XXX] where the attribute
> > is the echo'd $Region or is there a better way?
> > Thanks- Hide quoted text -
>
> - Show quoted text -

Reply via email to