if(!$("#src-img[src='']")){
}else{
};
I would like to know what is wrong with this selection in if, in case, I want, if a value is set in the src attribute, it executes if, otherwise else.
* That's why I put the '! '
Good afternoon, friends, I'm having a problem, I can not register all the users in the database, just register the last one, how can I solve this problem?
Index<formmethod="post" action="salvar.php">
Name
CPF
...
How can I do that when I click on a given button , the text of a certain textarea or input is selected?
I wanted answers with solutions with jQuery and also without jQuery (pure javascript).
I'm making a map of Brazil as svg, I need it when I click on a particular state it gives a show on a different div that will get information about that state.
I need to compile the id of the path with the div class and display .show
Follow...
I need to sort select alphabetically.
I tried to use this function that I found on the internet
function ordenarSelect(){
f$(".slc_Reuniao").html($("option", $(".slc_Reuniao")).sort(function(a,b){
return a.text == b.te...
How to consume a Web Service by javascript using Visual Studio?
I've searched and found a way to do it with Jquery but I've never used it before.
I need to consume this Web Service to search for information such as Addresses etc. I already...
I created this FIDDLE as a test.
I have this li inside a variable and I want to add the class c2 to that same li
var linha = '<li id= "id1" class="c1"> ' +
'<div id="id2">1</div>' +...