first time using stackoverflow.. so sorry for being confusing here.
I just implemented bbcode on my bootstrap webpage. it all works as i want it too, but when that works, my navigation doesn't work.
When i add this :
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
to my footer, my navigation works fine, but then my bbcode doesn't work as exspected.
if i comment it out, the script tag. bb code works perfect but then my navigation doesn't work...
this is the BBcode i use:
<div class="addChatMessage">
<form action="../code/crud.php?action=addToChat" method="POST" class="form-inline">
<div class="form-group">
<textarea id="test" name="message" class="form-control"></textarea>
</div>
<button type="submit" class="btn btn-success">Send</button>
</form>
<!-- preview bbcode-->
<br><H5 class="white">Preview</H5>
<div id="preview" class="previewbox col-12"></div>
<!-- load ajax library-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<!-- load custom js -->
<script src='bbedit/jquery.bbcode.js' type='text/javascript'></script>
<script type="text/javascript">
$(document).ready(function(){
$("#test").bbcode({tag_bold:true,tag_italic:true,tag_underline:true,tag_link:true,tag_image:true,button_image:true});
process();
});
var bbcode="";
function process()
{
if (bbcode != $("#test").val())
{
bbcode = $("#test").val();
$.get('bbedit/bbParser.php',
{
bbcode: bbcode
},
function(txt){
$("#preview").html(txt);
})
}
setTimeout("process()", 2000);
}
</script>
inside the preview bbcode it is supposed to mirror what is inside the textarea, but formatted according to bbcode.
and it is this that crashes or just stops working when i activate the script for jquery 1.11.3.min.js.
and when the jquery is commented out, the nav doesn't work but the bbcode works perfect...
Any ideas as to why it does this ?