jQuery Add Id to System Generated Popup -


i have system generated pop-up gets triggered clicking button. want add id can adjust inline css, can't seem work.

$('div.ui-dialog').on('load', function() {     $('div.ui-dialog').attr('id' , 'reposition'); }); 

html:

<input type="image" name="w1001303$ibtnupdate" id="w1001303_ibtnupdate"  src="/sitedata/siteid1/objectimages/update-address-2.jpg" alt="update"  onclick=" launchbilltoaddressmanager('w1001303_pnladdressmanager',  'w1001303_hdnaddressid',  'w1001303_tdaddress', 23361347, null, null,  null,  null, 'w1001303_chksetbilltosameasshipto', 0); return false;" style="border- width:0px;" rs_id="1221"> 

you need add id on click event of <button>. let's button id btn can this,

$('#btn').on('click', function() {     $('div.ui-dialog').attr('id', 'reposition'); }); 

also, make sure have jquery file included in html.


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -