Hello,
– TRT HD
– TRT 1 HD
– ATV HD
– STAR HD
Style remove with jQuery
Source: “– ATV HD”
Sample:
$(“span”).removeAttr("-- ATV HD");
How can I remove it?
Can you help me?
Hello,
– TRT HD
– TRT 1 HD
– ATV HD
– STAR HD
Style remove with jQuery
Source: “– ATV HD”
Sample:
$(“span”).removeAttr("-- ATV HD");
How can I remove it?
Can you help me?
– ATV HD isn’t an attribute, it’s text. First, move your css from inline into at very least style tags and classes. Then, give the elements their own id’s.
You want to change the css so, $(’#id’).css(‘border’, ‘new value’);
I have to do with – ATV HD,
Because, – ATV HD is taken from elsewhere
So, how do you figure out which span to remove? What event does this happen in?
I thought about handing over the code for this and decided against it. I have been too nice when other people have shown little effort in looking for their own answers.
[php] $(‘span’).on(‘click’, function(){
if ( $(this).html() == ‘-- ATV HD’){
$(this).removeAttr(‘style’);
}
});[/php]
Not working
[php]
$("#removeSelected").on(‘click’, function(){
if(remove){
var r = confirm(“Channel you selected will be removed”);
if (r == true) {
$(".selected_channel").remove();
// here remove border codes
}
} else alert("You choose the channel to be removed\n\nPlease select one of the channels you've added");
});
[/php]
English https://jsfiddle.net/yt0xj9dr/1/
Note: Channel text “remove” variable
I don’t see the code I posted in your code, but it was tested for accuracy.
I am sorry I do not know english,
I could not fully understand,
Do not see the codes here? https://jsfiddle.net/yt0xj9dr/1/
don’t have your code here