Sunday, 15 April 2012

jquery - How to include html attributes in an asp button that is run at server? -



jquery - How to include html attributes in an asp button that is run at server? -

i want add html attributes dynamically created asp buttons using c# can utilize them interact buttons using jquery. need have class , rel attributes of buttons in html of rendered page.

i beginner @ using jquery , not have much knowledge how utilize jquery dynamically created asp buttons.

to add together attributes in jquery can utilize attr()

$('#elementsid').attr('rel','thisrel');

this add together attribute rel="thisrel" element id=elementsid

to add together class can utilize addclass()

$('#elementsid').addclass('newclass');

this adds class="newclass" element id=elementsid

jquery asp.net button html

No comments:

Post a Comment