Tom Knowlton
asked on
div tag has inner html - I want to replace **just** the text that is inside, not the other stuff
My current attempt:
$('div.shippingfieldformat ting:conta ins("Addre ss2")');
<div id="ctl00_ContentPlaceHold er1_Shippi ngInfo1_Di v3" class="shippingfieldformat ting">Addr ess2:<inpu t name="ctl00$ContentPlaceHo lder1$Ship pingInfo1$ tbShipAddr ess2" type="text" id="ctl00_ContentPlaceHold er1_Shippi ngInfo1_tb ShipAddres s2" style="width:255px;" /></div>
Essentially I want to replace the inner html text of "Address2:" with "Address2: " but I want to leave the <input> tag as it is ---- I just want to replace the text portion of the inner html.
$('div.shippingfieldformat
<div id="ctl00_ContentPlaceHold
Essentially I want to replace the inner html text of "Address2:" with "Address2: " but I want to leave the <input> tag as it is ---- I just want to replace the text portion of the inner html.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER