Thanks for the help what I did was change it completely you are right
it is a simple process.
Code:
$(document).ready(function() {

        $('.my_property').click(function () {

                                        var prop =$(this).attr("name");


        $.post("n10-shortlist-connector.html", { web_AGENT_REF: prop});
        var htmlStr = "Added to Compare Tool";
        $(this).text(htmlStr);
        $(this).attr("style","color: #666");


                                                        });

                                           });

....


<a class="my_property" style="cursor:pointer; color: #900" name="<?
echo $AGENT_REF; ?>">Add to compare list</a>
Thanks again for all your help, much appreciated

On Aug 25, 8:09 pm, ArySal <aresh...@gmail.com> wrote:
> thank you Paolo I will also try this,
>
> On Aug 25, 7:12 pm, Paolo Chiodi <chiod...@gmail.com> wrote:
>
>
>
> > Another way is to alert($(this).find("#property_links").size()) to see
> > how many dom elements you get with that selector
>
> > Have you tried to use firebug to see the value of the hidden inputs?
> > maybe also that the error was server side...
>
> > Paolo
>
> > On Tue, Aug 25, 2009 at 8:09 PM, Paolo Chiodi<chiod...@gmail.com> wrote:
> > > What kind of error have you now? Have you tried to do alert(prop) to
> > > see if the value is correct?
>
> > > Paolo
>
> > > On Tue, Aug 25, 2009 at 5:49 PM, ArySal<aresh...@gmail.com> wrote:
>
> > >> Hi Paolo,
>
> > >> Thanks for the advice.
>
> > >> I tried what you mentioned still it does not work, the error is
> > >> slightly different but the result is pretty much the same.
>
> > >> What do you mean "By the way, it is not reccomanded to have more then
> > >> one element with same id ", could you recommend a tutorial or pointers
> > >> where I can get this function working please
>
> > >> Thanks Ary

Reply via email to