javascript - Changing action of form within div by div id -


i have change action of form within div without using form id jquery, javascript, instead have use div id. , tired code not worked:

$("#popup form:action").attr('value','address here'); 

the below div form

<div id="popup">     <form name="frm_categories" id="frm_categories" action="" method="post" enctype="multipart/form-data">     <div class="attributes" id="new_attribute">         //codes     </div>    </form> </div> 

can body me....

you can do:

$('#popup form').attr('action', 'address'); 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -