One of the nice things about jQuery is the ability to make your html cleaner and abstract the onclick to your script. Like:
$("a").click( function() { var vendorID = $(this).attr("rel"); tb_show('vendornotes',VendorInfoID(vendorID)); } ); Then all you have to do is change the rel (or id or whatever attribute) like $("a").attr("rel","23424"); There are other options, but this seems like a clean way. Glen On 9/16/07, amircx <[EMAIL PROTECTED]> wrote: > > > > hey, how can i replace a text inside an "onclick"? but only a part of it.. > for example: > > onclick="tb_show('vendornotes',VendorInfoID('3000'))"; > will be like > onclick="tb_show('vendornotes',VendorInfoID('12345'))"; > > thanks > -- > View this message in context: > http://www.nabble.com/replace-inside-an-attribute-tf4452366s15494.html#a12701467 > Sent from the JQuery mailing list archive at Nabble.com. > >