html - How to add line breaks to bootstrap modal -
I'm trying and failed to add line breaks in a dry bootstrap model.
My hyperlink template code that shows the message that the model show code:
{% res" "} {resume_details_trans}} & Gt; & lt; / div & gt; div class = "modal-body" = "BTN" data-rejected = "modal" aria-hidden = "true" & gt; {% Trans "Cancel"%} "& lt; / Button & gt; ; Nbsp; & Amp; Nbsp; & Lt; A class = "BTN-U BTN-U-red" id = "Delete Confirm OK" onclick = "Show progress animation ();" & Gt; {% Trans "Delet e"%} "& lt; / a & gt; & lt; / div & gt; & lt; / div & gt; ');} $ (' # DeleteConfirmModal '). (' .modal $ ('$'); Text ($ (this) .attr ('delete-confirm')); $ ('# DeleteConfirmOK'). Attr ('href', href); $ ('# DeleteConfirmModal') Model ({Show : True}) description is false;}); // Finish: delete code};
To delete the record, add it to the button:
& lt; a href = "url" delete-confirm = "Your message is here !! gt; & Lt; Span class = 'confirm_delete_warning_red_bold' & gt; You can also add CSS to specific text - are you sure? & Lt; / Span & gt; Change the text to "HTML" in & quot; Delete & lt; / a & gt;
and in your jquery code. The text will render the text and the html will act as html and The span will display line breaks and CSS in the tag.
$ ('# deleteConfirmModal'). ('Modal-body') .html ($ (this) .attr ('Deletion Confirmation Please check your usage of 'and' (single and double talk points), do not mix them.
This will work for your code. >
Comments
Post a Comment