As an element ID (elem) you can substitute the '#name' in this function:

function Help_Side(elem) { $('#name').slideToggle('fast'); } 
  • offtopic, 1 question = 1 topic - Gorets
  • Is this so important? - Vitaly Zaslavsky
  • @vital_viza, it’s usually offtopic like this: 'я решаю задачу A, в связи с чем появились вопросы B,C и D' :) It is important that the title be specific. - Sh4dow
  • I have already corrected I will take this into account in the future Thank you - Vitaly Zaslavsky

1 answer 1

one

 JS: if ($('#textarea').val()==='0') { /* code */ } PHP: if ($_POST['textarea']==='0') { /* code */ } 

2

 $('#div').click(function() { $(this).animate({width: $(this).width()==595 ? '837px' : '595px'}, 'slow'); }); 

3 cm 2) only {width: $(this).width()==0 ? '100%' : '0%'} {width: $(this).width()==0 ? '100%' : '0%'}

four

 function Help_Side(elem) { $('#'+elem).slideToggle('fast'); } 
  • Threat: use the site of this site , there are often answers to your questions in the comments) - Sh4dow
  • Sorry, but unfortunately I don’t know English - Vitali Zaslavsky