I have a program that generates a web page that contains a button. I want to be able to append the URL for that button. tblSubscriptionlist.asp
to tblSubscriptionlist.asp?Type=3
The generated element looks like this:
<a class="ewGridInsert" title="" data-caption="Insert" href="" onclick="return ewForms(this).Submit('tblSubscriptionlist.asp');" style="margin-right: 10px;" data-original-title="Insert"><span data-phrase="GridInsertLink" class="glyphicon ewIcon" data-caption="Insert" style="font-weight: 800;">Submit</span></a>
I tried:
$('.ewGridInsert').attr("href",onclick="return ewForms(this).Submit('tblSubscriptionlist.asp?type=3');");
but it added to the href not the actual URL.
Any assistance would be appreciated.