I have a page where my server side button controlid renders as '_ctl0:btnInsComplete' but when I try to select my control by syntax $("#_ctl0:btnInsComplete"), It returns empty object .When I try with $("id$='_ctl0:btnInsComplete']") , It returns the button object. I want to understand why my first syntax is failing even though I am passing complete client side rendered controlid or am I making mistake? Can some one help in this ?
Asked
Active
Viewed 89 times
3
Sridhar R
- 20,190
- 6
- 38
- 35
user1461826
- 207
- 3
- 10
3 Answers
0
try like this using Ends with Selector
$("[id$=btnInsComplete]")
Vinay Pratap Singh Bhadauria
- 9,829
- 3
- 28
- 49
0
Try this
$('button[id="_ctl0:btnInsComplete"]')
OR
$('[id="_ctl0:btnInsComplete"]')
Sridhar R
- 20,190
- 6
- 38
- 35