removing title (removeAttr) problem

Posted 1 year ago by ramher101

i have this div

 <div id="save-div" class="widget-head-color-box-o gray-bg-o p-xs text-center tooltipster-help-block" title="Finish all steps first before saving this inquiry.">
                                       

and every time a particular radio is check i fire this function

$("#save-div")
            .attr("class","widget-head-color-box-o green-bg-o p-xs text-center tooltipster-help-block")
            .attr("data-ripple","#f3f3f4")

i was able to transform the div from gray into a green div by using that function

now i want to change the title from the div

i've been trying to do this

$("#save-div")
            .attr("class","widget-head-color-box-o green-bg-o p-xs text-center tooltipster-help-block")
            .attr("data-ripple","#f3f3f4")
            .attr("title", "Save this Inquiry now to the System. The customer will also be notified of the Loan Details on the phone number he or she provided.");

it was working but now i got 2 titles for the div everytime i hover to the div i still see the "Finish all steps first before saving this inquiry" and below is the 2nd title

so i decided to add this before i used attr for title

            .removeAttr("title")

but its still not working (it still got 2 titles). what should i do to manipulate the title?

Please sign in or create an account to participate in this conversation.