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
Post a Comment